org.jibx.ws.io.handler
Class MarshallingOutHandler

java.lang.Object
  extended by 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).


Constructor Summary
MarshallingOutHandler(Object payload)
          Constructor.
 
Method Summary
 void invoke(OutContext context, IXMLWriter xmlWriter)
          Invokes the handler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallingOutHandler

public MarshallingOutHandler(Object payload)
Constructor.

Parameters:
payload - the payload to be marshalled
Method Detail

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 sent
xmlWriter - 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


Project Web Site