|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.ws.io.handler.ContextAttributeUnmarshallingInHandler
public final class ContextAttributeUnmarshallingInHandler
An unmarshaller that stores the unmarshalled objects in the current InContext
. It stores the unmarshalled
object as an attribute using the attribute name passed in the constructor as a key.
Constructor Summary | |
---|---|
ContextAttributeUnmarshallingInHandler(Class clazz,
String attributeName)
Create the unmarshaller using the binding factory for the "target class". |
|
ContextAttributeUnmarshallingInHandler(IBindingFactory factory,
String attributeName)
Create the unmarshaller using the specified binding factory. |
|
ContextAttributeUnmarshallingInHandler(String className,
String attributeName)
Create the unmarshaller using the binding factory for the "target class". |
|
ContextAttributeUnmarshallingInHandler(String bindingName,
String packageName,
String attributeName)
Create the unmarshaller using the binding factory for the specified binding name and binding package name. |
Method Summary | |
---|---|
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 ContextAttributeUnmarshallingInHandler(Class clazz, String attributeName) throws WsBindingException
clazz
- the target classattributeName
- the key to store the unmarshalled object in the current context
WsBindingException
- on any error in finding or accessing factory, or creating unmarshallerpublic ContextAttributeUnmarshallingInHandler(String className, String attributeName) throws WsBindingException, WsConfigurationException
className
- the name of the target classattributeName
- the key to store the unmarshalled object in the current context
WsBindingException
- on any error in finding or accessing factory, or creating unmarshaller
WsConfigurationException
- if specified class cannot be foundpublic ContextAttributeUnmarshallingInHandler(String bindingName, String packageName, String attributeName) throws WsBindingException
BindingDirectory.getFactory(String, String)
for further definition of the required binding name and
binding package name.
bindingName
- binding namepackageName
- target package for bindingattributeName
- the key to store the unmarshalled object in the current context
WsBindingException
- on any error in finding or accessing factory, or creating unmarshallerpublic ContextAttributeUnmarshallingInHandler(IBindingFactory factory, String attributeName) throws WsBindingException
factory
- the binding factoryattributeName
- the key to store the unmarshalled object in the current context
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 errors
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |