|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.ws.io.handler.UnmarshallingInHandler
public class UnmarshallingInHandler
Unmarshalls the payload and makes it available through a subsequent call to getPayload()
. Since this
handler is stateful, it is only appropriate for client code, and is not supported for server side handling.
Constructor Summary | |
---|---|
UnmarshallingInHandler(Class clazz)
Create the unmarshaller using the binding factory for the "target class". |
|
UnmarshallingInHandler(IBindingFactory factory)
Create the unmarshaller using the specified binding factory. |
|
UnmarshallingInHandler(String bindingName,
String packageName)
Create the unmarshaller using the binding factory for the specified binding name and binding package name. |
Method Summary | |
---|---|
Object |
getPayload()
Returns the payload that was unmarshalled in the previous call to invoke(InContext, IXMLReader) . |
Object |
invoke(InContext context,
IXMLReader xmlReader)
Invokes the handler. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnmarshallingInHandler(Class clazz) throws WsBindingException
clazz
- the target class
WsBindingException
- on any error in finding or accessing factory, or creating unmarshallerpublic UnmarshallingInHandler(String bindingName, String packageName) throws WsBindingException
BindingDirectory.getFactory(String, String)
for further definition of the required binding name and
binding package name.
bindingName
- binding namepackageName
- target package for binding
WsBindingException
- on any error in finding or accessing factory, or creating unmarshallerpublic UnmarshallingInHandler(IBindingFactory factory) throws WsBindingException
factory
- the binding factory
WsBindingException
- on any error in creating unmarshallerMethod Detail |
---|
public Object invoke(InContext context, IXMLReader xmlReader) throws IOException, WsException
invoke
in interface InHandler
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
null
if the handler has not
processed the XML content
IOException
- on I/O error reading the XML content
WsException
- on errors other than I/O errorspublic Object getPayload()
invoke(InContext, IXMLReader)
.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |