Package com.verisign.epp.framework
Interface EPPByteArrayAssembler
-
- All Known Implementing Classes:
EPPXMLByteArrayAssembler
public interface EPPByteArrayAssembler
TheEPPByteArrayAssembler
interface defines an interface for serializingEPPEvent
objects andEPPEventResponse
objects to and from byte arrays.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EPPEvent
decode(byte[] aInputBytes, java.lang.Object aData)
Takes anbyte
array and creates aEPPEvent
.byte[]
encode(EPPEventResponse aResponse, java.lang.Object aData)
Takes anEPPEventResponse
and serializes the response as a byte array.
-
-
-
Method Detail
-
encode
byte[] encode(EPPEventResponse aResponse, java.lang.Object aData) throws EPPAssemblerException
Takes anEPPEventResponse
and 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:
byte
array containing the encoded data.- Throws:
EPPAssemblerException
- Error converting theEPPEventResponse
to a byte array.
-
decode
EPPEvent decode(byte[] aInputBytes, java.lang.Object aData) throws EPPAssemblerException
Takes anbyte
array 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
EPPEvent
that is created from the input bytes. - Throws:
EPPAssemblerException
- Error creating theEPPEvent
-
-