public class WrapperBuilderImpl extends Object implements WrapperBuilder
RESULT_TAG, STATUS_TAG| Constructor and Description |
|---|
WrapperBuilderImpl()
Creates a new instance
The preferred way to create and use this builder implementation is to use
the
HelperFactory instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(String partName,
Element partNode)
Add a part in the right position (wrapped in a JBI part wrapper) to the JBI message wrapper element
|
void |
addPart(String partName,
NodeList partNodes)
Add a part in the right position (wrapped in a JBI part wrapper) to the JBI message wrapper element
|
void |
addParts(Map partNameToPartNodes)
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.
|
Document |
getResult()
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.
|
Document |
getStatusDocument(String statusMessage)
Obtain the status document, i.e. the Normalized Message payload in
jbi wsdl 1.1 wrapper format that represents a status (succeed or error)
|
javax.wsdl.Message |
getStatusMessage()
Obtain the status Message definition
|
void |
initialize(Document docToPopulate,
javax.wsdl.Message wsdlMessageDefinition,
String operationBindingMessageName)
Re-sets the result document, sets the WSDL message definition of the message to normalize
|
public WrapperBuilderImpl()
throws WrapperProcessingException
HelperFactory instead.WrapperProcessingExceptionpublic void initialize(Document docToPopulate, javax.wsdl.Message wsdlMessageDefinition, String operationBindingMessageName) throws WrapperProcessingException
initialize in interface WrapperBuilderwsdlMessageDefinition - sets the WSDL message definition of the message to normalizeoperationBindingMessageName - The name defined in the WSDL operation binding for the message to normalize to.WrapperProcessingException - if the builder could not be initializedpublic void addPart(String partName, NodeList partNodes) throws WrapperProcessingException
addPart in interface WrapperBuilderpartName - the name of the message partpartNode - the part node (payload)
The part node does not have to be associated with the normalDoc yet, it will be importedWrapperProcessingException - if the part could not be addedpublic void addPart(String partName, Element partNode) throws WrapperProcessingException
addPart in interface WrapperBuilderpartName - the name of the message partpartNode - the part node (payload)
The part node does not have to be associated with the normalDoc yet, it will be importedWrapperProcessingException - if the part could not be addedpublic void addParts(Map partNameToPartNodes)
addParts in interface WrapperBuildernormalDoc - The target document of the normalizationjbiMessageWrapper - The message wrapper element to add the jbi part wrappers and part payload tomessageDefinintion - the WSDL message definitionpartNameToPartNodes - 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 importedpublic Document getResult() throws WrapperProcessingException
getResult in interface WrapperBuilderWrapperProcessingExceptionpublic javax.wsdl.Message getStatusMessage()
throws WrapperProcessingException
WrapperBuildergetStatusMessage in interface WrapperBuilderWrapperProcessingExceptionpublic Document getStatusDocument(String statusMessage) throws WrapperProcessingException
WrapperBuildergetStatusDocument in interface WrapperBuilderWrapperProcessingExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.