Package com.verisign.epp.framework
Class HttpEPPXMLAssembler
- java.lang.Object
-
- com.verisign.epp.framework.HttpEPPXMLAssembler
-
- All Implemented Interfaces:
EPPByteArrayAssembler
public class HttpEPPXMLAssembler extends java.lang.Object implements EPPByteArrayAssembler
TheHttpEPPXMLAssemblerclass provides an implementation ofEPPAssemblerthat can assemble/disassembleEPPMessages andEPPEventResponses from HTTP.- See Also:
EPPAssembler
-
-
Constructor Summary
Constructors Constructor Description HttpEPPXMLAssembler()Construct and instance of anHttpEPPXMLAssembler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EPPEventdecode(byte[] aBytes, java.lang.Object aData)Takes an inputbytearray and reads XML from it to create anEPPEventbyte[]encode(EPPEventResponse aResponse, java.lang.Object aData)Takes anEPPEventResponseand serializes it to abytearray in XML Format.
-
-
-
Method Detail
-
decode
public EPPEvent decode(byte[] aBytes, java.lang.Object aData) throws EPPAssemblerException
Takes an inputbytearray and reads XML from it to create anEPPEvent- Specified by:
decodein interfaceEPPByteArrayAssembler- Parameters:
aBytes- The byte array to read data from.aData- A data object which can be used to store context information.- Returns:
- EPPEvent The
EPPEventthat is created from the InputStream - Throws:
EPPAssemblerException- Error creating theEPPEvent
-
encode
public byte[] encode(EPPEventResponse aResponse, java.lang.Object aData) throws EPPAssemblerException
Takes anEPPEventResponseand serializes it to abytearray in XML Format.- Specified by:
encodein interfaceEPPByteArrayAssembler- 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 serializing theEPPEventResponse
-
-