org.jibx.ws.io.handler
Interface InHandler
- All Known Implementing Classes:
- ContextAttributeUnmarshallingInHandler, ExceptionReader, UnmarshallingInHandler
public interface InHandler
Provides an interface for handlers to be invoked during the inbound processing of a message. The handlers have access
to both the InContext
and the IXMLReader
, and have the option of reading XML content.
invoke
Object invoke(InContext context,
IXMLReader xmlReader)
throws IOException,
WsException
- Invokes the handler. If the handler processes the current element it needs to parse past the end tag of that
element before returning.
- Parameters:
context
- the context of the current message being receivedxmlReader
- a reader for the XML message positioned at the start of the XML content for which the handler is
configured
- Returns:
- the object the handler has read from the XML content, or
null
if the handler has not
processed the XML content
- Throws:
IOException
- on I/O error reading the XML content
WsException
- on errors other than I/O errors