Package com.verisign.epp.framework
Interface EPPByteArrayAssembler
-
- All Known Implementing Classes:
EPPXMLByteArrayAssembler
public interface EPPByteArrayAssemblerTheEPPByteArrayAssemblerinterface defines an interface for serializingEPPEventobjects andEPPEventResponseobjects to and from byte arrays.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EPPEventdecode(byte[] aInputBytes, java.lang.Object aData)Takes anbytearray and creates aEPPEvent.byte[]encode(EPPEventResponse aResponse, java.lang.Object aData)Takes anEPPEventResponseand serializes the response as a byte array.
-
-
-
Method Detail
-
encode
byte[] encode(EPPEventResponse aResponse, java.lang.Object aData) throws EPPAssemblerException
Takes anEPPEventResponseand serializes the response as a byte array.- Parameters:
aResponse- The response that will be serializedaData- A data object which can be used to store context information.- Returns:
bytearray containing the encoded data.- Throws:
EPPAssemblerException- Error converting theEPPEventResponseto a byte array.
-
decode
EPPEvent decode(byte[] aInputBytes, java.lang.Object aData) throws EPPAssemblerException
Takes anbytearray and creates aEPPEvent.- Parameters:
aInputBytes- The byte array containing the request data.aData- A data object which can be used to store context information.- Returns:
- EPPEvent The
EPPEventthat is created from the input bytes. - Throws:
EPPAssemblerException- Error creating theEPPEvent
-
-