Package com.verisign.epp.framework
Class HttpEPPXMLAssembler
java.lang.Object
com.verisign.epp.framework.HttpEPPXMLAssembler
- All Implemented Interfaces:
EPPByteArrayAssembler
The
HttpEPPXMLAssembler class provides an implementation of
EPPAssembler that can assemble/disassemble EPPMessages and
EPPEventResponses from HTTP.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HttpEPPXMLAssembler
public HttpEPPXMLAssembler()Construct and instance of anHttpEPPXMLAssembler
-
-
Method Details
-
decode
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
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
-