public interface WrapperBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
RESULT_TAG
Constant RESULT
|
static String |
STATUS_TAG
Constant Status
|
| 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()
Obtain the result document, i.e. the Normalized Message payload in
jbi wsdl 1.1 wrapper format
|
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)
Initialize the builder to start a build sequence.
|
static final String STATUS_TAG
static final String RESULT_TAG
void initialize(Document docToPopulate, javax.wsdl.Message wsdlMessageDefinition, String operationBindingMessageName) throws WrapperProcessingException
wsdlMessageDefinition - 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 initializedvoid addPart(String partName, Element partNode) throws WrapperProcessingException
partName - 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 addedvoid addPart(String partName, NodeList partNodes) throws WrapperProcessingException
partName - the name of the message partpartNodes - the part node(s) (payload)
The part node does not have to be associated with the normalDoc yet, it will be importedWrapperProcessingException - if the part could not be addedvoid addParts(Map partNameToPartNodes) throws WrapperProcessingException
normalDoc - 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 node(s) of type NodeList (payload),
The part node does not have to be associated with the normalDoc yet, it will be importedWrapperProcessingException - if the parts could not be addedDocument getResult() throws WrapperProcessingException
WrapperProcessingExceptionDocument getStatusDocument(String statusMessage) throws WrapperProcessingException
WrapperProcessingExceptionjavax.wsdl.Message getStatusMessage()
throws WrapperProcessingException
WrapperProcessingExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.