Package com.verisign.epp.util
Interface EPPSendReceiveLogger
-
- All Known Implementing Classes:
EPPRawSendReceiveLogger,EPPSecureSendReceiveLogger
public interface EPPSendReceiveLoggerInterface for logging messages sent and received. A class can implement this interface and configured to override the information logged. For example, a secure logger can be created to mask certain attributes (.e.g, password, auth info) from getting logged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlogReceive(byte[] aPacket, EPPMessage aMessage)Log the receiving of a message.voidlogSend(byte[] aPacket, EPPMessage aMessage)Log the sending of a message.EPPCodecComponentmaskMessage(EPPCodecComponent aMessage)Utility method used to optionally mask specific message attributes based on the concreteEPPSendReceiveLogger.java.lang.StringmaskString(java.lang.String aString)Utility method used to optionally mask specific strings values using the concreteEPPSendReceiverLogger.
-
-
-
Method Detail
-
logSend
void logSend(byte[] aPacket, EPPMessage aMessage)Log the sending of a message. The message itself is immutable, but the message can be cloned to customize the attributes logged.- 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
void logReceive(byte[] aPacket, EPPMessage aMessage)Log the receiving of a message. The message itself is immutable, but the message can be cloned to customize the attributes logged.- 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
EPPCodecComponent maskMessage(EPPCodecComponent aMessage)
Utility method used to optionally mask specific message attributes based on the concreteEPPSendReceiveLogger.- Parameters:
aMessage- Message to optionally mask. Ifnull,nullwill be returned.- Returns:
- Masked message if instance is different from
aMessage.aMessageis returned if no filtering was done.
-
maskString
java.lang.String maskString(java.lang.String aString)
Utility method used to optionally mask specific strings values using the concreteEPPSendReceiverLogger.- Parameters:
aString-Stringto scan for masking- Returns:
- Masked
String.
-
-