Class HttpEPPXMLAssembler

java.lang.Object
com.verisign.epp.framework.HttpEPPXMLAssembler
All Implemented Interfaces:
EPPByteArrayAssembler

public class HttpEPPXMLAssembler extends Object implements EPPByteArrayAssembler
The HttpEPPXMLAssembler class provides an implementation of EPPAssembler that can assemble/disassemble EPPMessages and EPPEventResponses from HTTP.
See Also:
  • Constructor Details

    • HttpEPPXMLAssembler

      public HttpEPPXMLAssembler()
      Construct and instance of an HttpEPPXMLAssembler
  • Method Details

    • decode

      public EPPEvent decode(byte[] aBytes, Object aData) throws EPPAssemblerException
      Takes an input byte array and reads XML from it to create an EPPEvent
      Specified by:
      decode in interface EPPByteArrayAssembler
      Parameters:
      aBytes - The byte array to read data from.
      aData - A data object which can be used to store context information.
      Returns:
      EPPEvent The EPPEvent that is created from the InputStream
      Throws:
      EPPAssemblerException - Error creating the EPPEvent
    • encode

      public byte[] encode(EPPEventResponse aResponse, Object aData) throws EPPAssemblerException
      Takes an EPPEventResponse and serializes it to a byte array in XML Format.
      Specified by:
      encode in interface EPPByteArrayAssembler
      Parameters:
      aResponse - The response that will be serialized
      aData - A data object which can be used to store context information.
      Returns:
      byte array containing the encoded data.
      Throws:
      EPPAssemblerException - Error serializing the EPPEventResponse