Package com.verisign.epp.framework
Interface EPPAssembler
-
- All Known Implementing Classes:
EPPSerialAssembler
,EPPXMLAssembler
public interface EPPAssembler
TheEPPAssembler
interface defines an interface for serializingEPPEvent
objects andEPPEventResponse
objects. Implementing classes should define the format of the input and output streams.- See Also:
EPPXMLAssembler
,EPPEventResponse
,EPPEvent
,EPPAssemblerException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EPPEvent
toEvent(java.io.InputStream aInputStream, java.lang.Object aData)
Takes anInputStream
and creates aEPPEvent
void
toStream(EPPEventResponse aResponse, java.io.OutputStream aOutputStream, java.lang.Object aData)
Takes anEPPEventResponse
and serializes it to anOutputStream
-
-
-
Method Detail
-
toStream
void toStream(EPPEventResponse aResponse, java.io.OutputStream aOutputStream, java.lang.Object aData) throws EPPAssemblerException
Takes anEPPEventResponse
and serializes it to anOutputStream
- Parameters:
aResponse
- The response that will be serializedaOutputStream
- The OutputStream that the response will be serialized to.aData
- Optional Client DataObject
- Throws:
EPPAssemblerException
- Error serializing theEPPEventResponse
-
toEvent
EPPEvent toEvent(java.io.InputStream aInputStream, java.lang.Object aData) throws EPPAssemblerException
Takes anInputStream
and creates aEPPEvent
- Parameters:
aInputStream
- The InputStream to read data from.aData
- Optional Client DataObject
- Returns:
- EPPEvent The
EPPEvent
that is created from the InputStream - Throws:
EPPAssemblerException
- Error creating theEPPEvent
-
-