|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.ws.io.handler.ContextAttributeMarshallingOutHandler
public final class ContextAttributeMarshallingOutHandler
A marshaller that retrieves the object to be marshalled from the current OutContext. The object is retrieved
from the attribute using the attribute name passed in the constructor as a key.
| Constructor Summary | |
|---|---|
ContextAttributeMarshallingOutHandler(Class clazz,
String attributeName)
Create the marshaller using the binding factory for the "target class". |
|
ContextAttributeMarshallingOutHandler(IBindingFactory factory,
String attributeName)
Create the marshaller using the specified binding factory. |
|
ContextAttributeMarshallingOutHandler(String className,
String attributeName)
Create the marshaller using the binding factory for the "target class". |
|
ContextAttributeMarshallingOutHandler(String bindingName,
String packageName,
String attributeName)
Create the marshaller using the binding factory for the specified binding name and binding package name. |
|
| 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 |
|---|
public ContextAttributeMarshallingOutHandler(Class clazz,
String attributeName)
throws WsBindingException
clazz - the target classattributeName - the key to retrieve the object to be marshalled from the current context
WsBindingException - on any error in finding or accessing factory, or creating marshaller
public ContextAttributeMarshallingOutHandler(String className,
String attributeName)
throws WsBindingException,
WsConfigurationException
className - the name of the target classattributeName - the key to retrieve the object to be marshalled from the current context
WsBindingException - on any error in finding or accessing factory, or creating marshaller
WsConfigurationException - if specified class cannot be found
public ContextAttributeMarshallingOutHandler(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 retrieve the object to be marshalled from the current context
WsBindingException - on any error in finding or accessing factory, or creating marshaller
public ContextAttributeMarshallingOutHandler(IBindingFactory factory,
String attributeName)
throws WsBindingException
factory - the binding factoryattributeName - the key to retrieve the object to be marshalled from the current context
WsBindingException - on any error in creating marshaller| Method Detail |
|---|
public void invoke(OutContext context,
IXMLWriter xmlWriter)
throws IOException,
WsException
invoke in interface OutHandlercontext - 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
IOException - on I/O error writing 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 | |||||