| java.lang.Object com.sun.jbi.wsdl11wrapper.impl.WrapperBuilderImpl
WrapperBuilderImpl | public class WrapperBuilderImpl implements WrapperBuilder(Code) | | Assists in building the WSDL 1.1 wrapper for normalized messages specified by JBI
Usage sequence:
initialize()
addParts() or multiple addPart() calls
getResult()
The same instance should not be used by multiple threads concurrently as it is
not guaranteed to be thread safe - and maintains state
The re-use of the same instance however is encouraged.
author: aegloff |
Constructor Summary | |
public | WrapperBuilderImpl() Creates a new instance
The preferred way to create and use this builder implementation is to use
the HelperFactory instead. |
isResultPrepared | boolean isResultPrepared(Code) | | |
mPartNameToPartNodes | Map mPartNameToPartNodes(Code) | | |
messageDefinition | Message messageDefinition(Code) | | |
WrapperBuilderImpl | public WrapperBuilderImpl() throws WrapperProcessingException(Code) | | Creates a new instance
The preferred way to create and use this builder implementation is to use
the HelperFactory instead.
|
addPart | public void addPart(String partName, org.w3c.dom.NodeList partNodes) throws WrapperProcessingException(Code) | | Add a part in the right position (wrapped in a JBI part wrapper) to the JBI message wrapper element
Parameters: partName - the name of the message part Parameters: partNode - the part node (payload)The part node does not have to be associated with the normalDoc yet, it will be imported |
addPart | public void addPart(String partName, Element partNode) throws WrapperProcessingException(Code) | | Add a part in the right position (wrapped in a JBI part wrapper) to the JBI message wrapper element
Parameters: partName - the name of the message part Parameters: partNode - the part node (payload)The part node does not have to be associated with the normalDoc yet, it will be imported |
addParts | public void addParts(Map partNameToPartNodes)(Code) | | Add parts in the right order (each wrapped in a JBI part wrapper) to the passed in JBI message wrapper element
The jbiMessageWrapper must be a node of the normalDoc.
Parameters: normalDoc - The target document of the normalization Parameters: jbiMessageWrapper - The message wrapper element to add the jbi part wrappers and part payload to Parameters: messageDefinintion - the WSDL message definition Parameters: partNameToPartNodes - a mapping from the part name to the part NodeList (payload).The part node does not have to be associated with the normalDoc yet, it will be imported |
getResult | public Document getResult() throws WrapperProcessingException(Code) | | Retrieve the Normalized Message with the parts added (addPart(s)) since the initialize() call
Make sure to only retrieve the result after all desired parts have been added.
Parts added after the result of a build squence has been retrieved already
(meaning without starting a new build squence by calling initialize) will NOT be included
in subsequent retrievals of Result
|
initialize | public void initialize(Document docToPopulate, Message wsdlMessageDefinition, String operationBindingMessageName) throws WrapperProcessingException(Code) | | Re-sets the result document, sets the WSDL message definition of the message to normalize
|
|
|