Interface EPPAssembler

All Known Implementing Classes:
EPPSerialAssembler, EPPXMLAssembler

public interface EPPAssembler
The EPPAssembler interface defines an interface for serializing EPPEvent objects and EPPEventResponse objects. Implementing classes should define the format of the input and output streams.
See Also:
  • Method Details

    • toStream

      void toStream(EPPEventResponse aResponse, OutputStream aOutputStream, Object aData) throws EPPAssemblerException
      Takes an EPPEventResponse and serializes it to an OutputStream
      Parameters:
      aResponse - The response that will be serialized
      aOutputStream - The OutputStream that the response will be serialized to.
      aData - Optional Client Data Object
      Throws:
      EPPAssemblerException - Error serializing the EPPEventResponse
    • toEvent

      EPPEvent toEvent(InputStream aInputStream, Object aData) throws EPPAssemblerException
      Takes an InputStream and creates a EPPEvent
      Parameters:
      aInputStream - The InputStream to read data from.
      aData - Optional Client Data Object
      Returns:
      EPPEvent The EPPEvent that is created from the InputStream
      Throws:
      EPPAssemblerException - Error creating the EPPEvent