Package com.verisign.epp.util
Class EPPRawSendReceiveLogger
java.lang.Object
com.verisign.epp.util.EPPRawSendReceiveLogger
- All Implemented Interfaces:
EPPSendReceiveLogger
A concrete
EPPSendReceiveLogger that logs the messages in raw form to
the Log4J com.verisign.epp.util.EPPXMLStream category. This logging category
is used for backward compatibility to logging configurations when the
EPPXMLStream logged the packets directly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogReceive(byte[] aPacket, EPPMessage aMessage) Log the raw receiving of a message.voidlogSend(byte[] aPacket, EPPMessage aMessage) Log the raw sending of a message.maskMessage(EPPCodecComponent aMessage) Utility method used to optionally mask specific message attributes based on the concreteEPPSendReceiveLogger.maskString(String aString) Mask a general string of sensitive information.
-
Constructor Details
-
EPPRawSendReceiveLogger
public EPPRawSendReceiveLogger()
-
-
Method Details
-
logSend
Log the raw sending of a message. No filtering or alterations are done to the attributes of the message.- Specified by:
logSendin interfaceEPPSendReceiveLogger- Parameters:
aPacket- Packet to send. This may benullif the packet has not been encoded yet.aMessage- The message that is being sent, which could be any concreteEPPMessage, including aEPPCommand, anEPPGreeting, anEPPHello, or anEPPResponse. This may benullif theEPPMessageis not available.
-
logReceive
Log the raw receiving of a message. No filtering or alterations are done to the attributes of the message.- Specified by:
logReceivein interfaceEPPSendReceiveLogger- Parameters:
aPacket- Packet received. This may benullif the packet is not available.aMessage- The message received, which could be any concreteEPPMessage, including aEPPCommand, anEPPGreeting, anEPPHello, or anEPPResponse. This may benullif theEPPMessageis not available.
-
maskMessage
Utility method used to optionally mask specific message attributes based on the concreteEPPSendReceiveLogger.EPPRawSendReceiveLoggerdoes not perform any masking, so theaMessageparameter is directly returned.- Specified by:
maskMessagein interfaceEPPSendReceiveLogger- Parameters:
aMessage- Message to mask.EPPRawSendReceiveLoggerdoes not perform any masking, so theaMessageparameter is directly returned.- Returns:
- Matches the
aMessageparameter.
-
maskString
Mask a general string of sensitive information. Specific string regular expressions are checked and matching strings are masked by this method for inclusion in exceptions and logs.- Specified by:
maskStringin interfaceEPPSendReceiveLogger- Parameters:
aString-Stringto scan for masking- Returns:
- Masked
String.
-