|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.framework.EPPByteArrayDispatcher
public class EPPByteArrayDispatcher
A Singleton class that delegates message assembly to an EPPAssembler then
routes messages to the appropriate EPPEventHandler.
EPPEventHandler,
EPPEvent| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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
EPPEventHandler
EPPEventException - Exception related to the handling of an event
EPPAssemblerException - 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 register
public byte[] toBytes(EPPMessage aMessage)
throws EPPAssemblerException
byte array.
aMessage - EPP Message to send to the client
EPPAssemblerException - Error encoding the EPP message
public byte[] toBytes(EPPMessage aMessage,
java.lang.Object aData)
throws EPPAssemblerException
byte array.
aMessage - EPP Message to send to the client
EPPAssemblerException - Error encoding the EPP message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||