Package com.verisign.epp.util
Interface EPPSendReceiveLogger
- All Known Implementing Classes:
EPPRawSendReceiveLogger,EPPSecureSendReceiveLogger,EPPSecureSendReceiveLogger
public interface EPPSendReceiveLogger
Interface 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
Modifier and TypeMethodDescriptionvoidlogReceive(byte[] aPacket, EPPMessage aMessage) Log the receiving of a message.voidlogSend(byte[] aPacket, EPPMessage aMessage) Log the sending of a message.maskMessage(EPPCodecComponent aMessage) Utility method used to optionally mask specific message attributes based on the concreteEPPSendReceiveLogger.maskString(String aString) Utility method used to optionally mask specific strings values using the concreteEPPSendReceiverLogger.
-
Method Details
-
logSend
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
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
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
Utility method used to optionally mask specific strings values using the concreteEPPSendReceiverLogger.- Parameters:
aString-Stringto scan for masking- Returns:
- Masked
String.
-