Class EPPSerialAssembler

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

public class EPPSerialAssembler extends Object implements EPPAssembler
The EPPSerialAssembler class provides an implementation of EPPAssembler that can assemble/disassemble EPPMessages and EPPEventResponses from standard java Input and Outputstreams using java serialization.

See Also:
  • Constructor Details

    • EPPSerialAssembler

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

    • toStream

      public void toStream(EPPEventResponse aMessage, OutputStream aOutputStream, Object aData) throws EPPAssemblerException
      Takes an EPPEventResponse and serializes it to an OutputStream using java serialization.
      Specified by:
      toStream in interface EPPAssembler
      Parameters:
      aMessage - The response that will be serialized
      aOutputStream - The OutputStream that the response will be serialized to.
      aData - DOCUMENT ME!
      Throws:
      EPPAssemblerException - Error serializing the EPPEventResponse
    • toEvent

      public EPPEvent toEvent(InputStream aStream, Object aData) throws EPPAssemblerException
      Takes an InputStream and uses java serialization to create an EPPEvent
      Specified by:
      toEvent in interface EPPAssembler
      Parameters:
      aStream - The InputStream to read data from.
      aData - DOCUMENT ME!
      Returns:
      EPPEvent The EPPEvent that is created from the InputStream
      Throws:
      EPPAssemblerException - Error creating the EPPEvent