org.jibx.ws.io.handler
Class MarshallingOutHandler
java.lang.Object
org.jibx.ws.io.handler.MarshallingOutHandler
- All Implemented Interfaces:
- OutHandler
public class MarshallingOutHandler
- extends Object
- implements OutHandler
Payload marshaller, where the payload that is passed to the constructor is marshalled on a subsequent call to
invoke(OutContext, IXMLWriter).
MarshallingOutHandler
public MarshallingOutHandler(Object payload)
- Constructor.
- Parameters:
payload - the payload to be marshalled
invoke
public void invoke(OutContext context,
IXMLWriter xmlWriter)
throws IOException,
WsException
- Invokes the handler.
- Specified by:
invoke in interface OutHandler
- Parameters:
context - the context of the current message being sentxmlWriter - a writer for the XML message positioned at the start of the XML content for which the handler is
configured
- Throws:
IOException - on I/O error writing the XML content
WsException - on errors other than I/O errors