Package com.verisign.epp.framework
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 Summary
Modifier and TypeMethodDescriptiontoEvent(InputStream aInputStream, Object aData) Takes anInputStreamand creates aEPPEventvoidtoStream(EPPEventResponse aResponse, OutputStream aOutputStream, Object aData) Takes anEPPEventResponseand serializes it to anOutputStream
-
Method Details
-
toStream
void toStream(EPPEventResponse aResponse, OutputStream aOutputStream, Object aData) throws EPPAssemblerException Takes anEPPEventResponseand 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
Takes anInputStreamand creates aEPPEvent- Parameters:
aInputStream- The InputStream to read data from.aData- Optional Client DataObject- Returns:
- EPPEvent The
EPPEventthat is created from the InputStream - Throws:
EPPAssemblerException- Error creating theEPPEvent
-