public interface EPPSendReceiveLogger
Modifier and Type | Method and Description |
---|---|
void |
logReceive(byte[] aPacket,
EPPMessage aMessage)
Log the receiving of a message.
|
void |
logSend(byte[] aPacket,
EPPMessage aMessage)
Log the sending of a message.
|
EPPCodecComponent |
maskMessage(EPPCodecComponent aMessage)
Utility method used to optionally mask specific message attributes based
on the concrete
EPPSendReceiveLogger . |
java.lang.String |
maskString(java.lang.String aString)
Utility method used to optionally mask specific strings values
using the concrete
EPPSendReceiverLogger . |
void logSend(byte[] aPacket, EPPMessage aMessage)
aPacket
- Packet to send. This may be null
if the packet has
not been encoded yet.aMessage
- The message that is being sent, which could be any concrete
EPPMessage
, including a
EPPCommand
, an
EPPGreeting
, an
EPPHello
, or an
EPPResponse
. This may be
null
if the EPPMessage
is not
available.void logReceive(byte[] aPacket, EPPMessage aMessage)
aPacket
- Packet received. This may be null
if the packet is
not available.aMessage
- The message received, which could be any concrete
EPPMessage
, including a
EPPCommand
, an
EPPGreeting
, an
EPPHello
, or an
EPPResponse
. This may be
null
if the EPPMessage
is not
available.EPPCodecComponent maskMessage(EPPCodecComponent aMessage)
EPPSendReceiveLogger
.aMessage
- Message to optionally mask. If null
,
null
will be returned.aMessage
. aMessage
is returned if no filtering was done.java.lang.String maskString(java.lang.String aString)
EPPSendReceiverLogger
.aString
- String
to scan for maskingString
.