Class EPPXMLAssembler

java.lang.Object
com.verisign.epp.framework.EPPXMLAssembler
All Implemented Interfaces:
EPPAssembler

public class EPPXMLAssembler extends Object implements EPPAssembler
The EPPXMLAssembler class provides an implementation of EPPAssembler that can assemble/disassemble EPPMessages and EPPEventResponses from java Input and Output streams that contain streamed XML.
See Also:
  • Constructor Details

    • EPPXMLAssembler

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

    • toStream

      public void toStream(EPPEventResponse aResponse, OutputStream aOutputStream, Object aData) throws EPPAssemblerException
      Takes an EPPEventResponse and serializes it to an OutputStream in XML Format.
      Specified by:
      toStream in interface EPPAssembler
      Parameters:
      aResponse - The response that will be serialized
      aOutputStream - The OutputStream that the response will be serialized to.
      aData - Session data
      Throws:
      EPPAssemblerException - Error serializing the EPPEventResponse
    • toEvent

      public EPPEvent toEvent(InputStream aStream, Object aData) throws EPPAssemblerException
      Takes an InputStream and reads XML from it to create an EPPEvent
      Specified by:
      toEvent in interface EPPAssembler
      Parameters:
      aStream - The InputStream to read data from.
      aData - Session data
      Returns:
      EPPEvent The EPPEvent that is created from the InputStream
      Throws:
      EPPAssemblerException - Error creating the EPPEvent