public class EPPByteArrayDispatcher
extends java.lang.Object
EPPEventHandler,
EPPEvent| Modifier and Type | Method and Description |
|---|---|
static EPPByteArrayDispatcher |
getInstance()
Gets the one and only instance of the EPPByteArrayDispatcher
|
byte[] |
processMessage(byte[] aInputBytes,
java.lang.Object aData)
Creates an
EPPMessage, sends the message to the appropriate
EPPEventHandler, and then returns the response as a
byte array. |
void |
registerHandler(EPPEventHandler aHandler)
Registers an
EPPEvenHandler for notification of Events. |
void |
setAssembler(EPPByteArrayAssembler aByteArrayAssembler)
Sets the ByteArrayAssembler.
|
byte[] |
toBytes(EPPMessage aMessage)
Encodes an EPP message to a
byte array. |
byte[] |
toBytes(EPPMessage aMessage,
java.lang.Object aData)
Encodes an EPP message to a
byte array. |
public static EPPByteArrayDispatcher getInstance()
public void setAssembler(EPPByteArrayAssembler aByteArrayAssembler)
aByteArrayAssembler - The ByteArrayAssembler to use.public byte[] processMessage(byte[] aInputBytes,
java.lang.Object aData)
throws EPPEventException,
EPPAssemblerException
EPPMessage, sends the message to the appropriate
EPPEventHandler, and then returns the response as a
byte array.aInputBytes - The byte array containing the xml inputaData - Any additional data that may be required by the
EPPEventHandlerEPPEventException - Exception related to the handling of an eventEPPAssemblerException - Exception related to the assembling/de-assembling of
messages. EPPAssemberException.isFatal can be
called to determine if the exception is a fatal exception
for the client session.public void registerHandler(EPPEventHandler aHandler)
EPPEvenHandler for notification of Events.aHandler - The EPPEventhandler to registerpublic byte[] toBytes(EPPMessage aMessage) throws EPPAssemblerException
byte array.aMessage - EPP Message to send to the clientEPPAssemblerException - Error encoding the EPP messagepublic byte[] toBytes(EPPMessage aMessage, java.lang.Object aData) throws EPPAssemblerException
byte array.aMessage - EPP Message to send to the clientEPPAssemblerException - Error encoding the EPP messageCopyright © VeriSign Inc. All Rights Reserved.