public class WrapperParserImpl extends Object implements WrapperParser
| Constructor and Description |
|---|
WrapperParserImpl()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
static String |
extractMessageName(Document wrappedDoc)
Get the optional message "name" defined in the wrapped document.
|
static QName |
extractMessageType(Document wrappedDoc,
javax.wsdl.Definition wsdlDefinition)
Get the message type of the message wrapper in the wrapped document.
|
String |
getMessageName()
Get the optional message "name" defined in the wrapped document.
|
QName |
getMessageType()
Get the message type of the message wrapper in the wrapped document.
|
int |
getNoOfParts() |
String[] |
getPartNames() |
NodeList |
getPartNodes(String partName)
Returns all Nodes inside the part wrapper
(a jbi:part element may legally contain multiple Elements, or text)
|
Element |
getWrappedPart(String partName)
Returns the part, including the
|
boolean |
hasPart(String partName)
Note that the spec mandates that all parts present in the WSDL message definition
have to appear in the wrapped normalized message - as such this method has limited usefulness
|
void |
parse(Document wrappedDoc,
javax.wsdl.Definition wsdlDefinition)
Parse a normalized message document in JBI WSDL 1.1 wrapper format
|
void |
parse(Document wrappedDoc,
javax.wsdl.Message wsdlMessageDefinition)
Parse a normalized message document in JBI WSDL 1.1 wrapper format
|
static NodeList |
removeJBIPartWrapper(Element wrappedPart)
Given the element for a jbi part wrapper, removes the wrapper element
and returns the part payload
|
public void parse(Document wrappedDoc, javax.wsdl.Definition wsdlDefinition) throws WrapperProcessingException
parse in interface WrapperParserwrappedDoc - the wrapped normalized message documentwsdlDefinition - the full wsdl definition, including the definition for the normalized messageWrapperProcessingException - if there is an issue parsing the normalized message,
e.g. if the normalized message could not be found in the WSDLpublic void parse(Document wrappedDoc, javax.wsdl.Message wsdlMessageDefinition) throws WrapperProcessingException
parse in interface WrapperParserwrappedDoc - the wrapped normalized message documentwsdlMessageDefinition - the wsdl message definition for the normalized messageWrapperProcessingException - if there is an issue parsing the normalized message,
e.g. if the normalized message does not match the WSDL descriptionpublic boolean hasPart(String partName)
hasPart in interface WrapperParserpartName - the name of the part to checkpublic NodeList getPartNodes(String partName) throws WrapperProcessingException
getPartNodes in interface WrapperParserpartName - the name of the partWrapperProcessingException - if the part could not be returnedpublic Element getWrappedPart(String partName) throws WrapperProcessingException
getWrappedPart in interface WrapperParserpartName - the name of the partWrapperProcessingException - if the part could not be returnedpublic int getNoOfParts()
getNoOfParts in interface WrapperParserpublic String[] getPartNames()
getPartNames in interface WrapperParserpublic static NodeList removeJBIPartWrapper(Element wrappedPart)
wrappedPart - the Element representing the JBI part wrapperpublic QName getMessageType() throws WrapperProcessingException
getMessageType in interface WrapperParserWrapperProcessingExceptionpublic String getMessageName() throws WrapperProcessingException
getMessageName in interface WrapperParserWrapperProcessingExceptionpublic static QName extractMessageType(Document wrappedDoc, javax.wsdl.Definition wsdlDefinition) throws WrapperProcessingException
wrappedDoc - the wrapped normalized messagewsdlDefinition - the wsdl definition containing the definition for the normalized message.WrapperProcessingExceptionpublic static String extractMessageName(Document wrappedDoc) throws WrapperProcessingException
wrappedDoc - the wrapped normalized messageWrapperProcessingExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.