| com.sun.jbi.wsdl11wrapper.WrapperBuilder
All known Subclasses: com.sun.jbi.wsdl11wrapper.impl.WrapperBuilderImpl,
WrapperBuilder | public interface WrapperBuilder (Code) | | Assist in processing normalized messages with JBI WSDL 1.1 wrappers
Usage sequence, for each message to normalize:
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 |
RESULT_TAG | final public static String RESULT_TAG(Code) | | Constant RESULT
|
STATUS_TAG | final public static String STATUS_TAG(Code) | | Constant Status
|
addPart | 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 throws: WrapperProcessingException - if the part could not be added |
addPart | void addPart(String partName, 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: partNodes - the part node(s) (payload)The part node does not have to be associated with the normalDoc yet, it will be imported throws: WrapperProcessingException - if the part could not be added |
addParts | void addParts(Map partNameToPartNodes) throws WrapperProcessingException(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 node(s) of type NodeList (payload),The part node does not have to be associated with the normalDoc yet, it will be imported throws: WrapperProcessingException - if the parts could not be added |
getResult | Document getResult() throws WrapperProcessingException(Code) | | Obtain the result document, i.e. the Normalized Message payload in
jbi wsdl 1.1 wrapper format
the normalized message payload document |
getStatusDocument | Document getStatusDocument(String statusMessage) throws WrapperProcessingException(Code) | | Obtain the status document, i.e. the Normalized Message payload in
jbi wsdl 1.1 wrapper format that represents a status (succeed or error)
the normalized message payload document |
getStatusMessage | Message getStatusMessage() throws WrapperProcessingException(Code) | | Obtain the status Message definition
the normalized message payload document |
initialize | void initialize(Document docToPopulate, Message wsdlMessageDefinition, String operationBindingMessageName) throws WrapperProcessingException(Code) | | Initialize the builder to start a build sequence.
Also re-sets a result document if it already exists.
Parameters: wsdlMessageDefinition - sets the WSDL message definition of the message to normalize Parameters: operationBindingMessageName - The name defined in the WSDL operation binding for the message to normalize to. throws: WrapperProcessingException - if the builder could not be initialized |
|
|