| java.lang.Object com.sun.jbi.wsdl11wrapper.impl.WrapperParserImpl
WrapperParserImpl | public class WrapperParserImpl implements WrapperParser(Code) | | Assists in processing the WSDL 1.1 wrapper for normalized messages specified by JBI
author: aegloff |
Method Summary | |
public static String | extractMessageName(Document wrappedDoc) Get the optional message "name" defined in the wrapped document. | public static QName | extractMessageType(Document wrappedDoc, Definition wsdlDefinition) Get the message type of the message wrapper in the wrapped document.
If the wsdlDefinition passed in does not contain a namespace definition for the
type prefix present int the message wrapper the QName namespace will be null
Parameters: wrappedDoc - the wrapped normalized message Parameters: wsdlDefinition - the wsdl definition containing the definition for the normalized message. | public String | getMessageName() Get the optional message "name" defined in the wrapped document. | public QName | getMessageType() Get the message type of the message wrapper in the wrapped document. | public int | getNoOfParts() | public String[] | getPartNames() | public NodeList | getPartNodes(String partName) | public Element | getWrappedPart(String partName) | public boolean | hasPart(String partName) | public void | parse(Document wrappedDoc, Definition wsdlDefinition) Parse a normalized message document in JBI WSDL 1.1 wrapper format
Parameters: wrappedDoc - the wrapped normalized message document Parameters: wsdlDefinition - the full wsdl definition, including the definition for the normalized message throws: WrapperProcessingException - if there is an issue parsing the normalized message,e.g. | public void | parse(Document wrappedDoc, Message wsdlMessageDefinition) Parse a normalized message document in JBI WSDL 1.1 wrapper format
Parameters: wrappedDoc - the wrapped normalized message document Parameters: wsdlMessageDefinition - the wsdl message definition for the normalized message throws: WrapperProcessingException - if there is an issue parsing the normalized message,e.g. | public static NodeList | removeJBIPartWrapper(Element wrappedPart) |
WrapperParserImpl | public WrapperParserImpl()(Code) | | Creates a new instance
|
extractMessageName | public static String extractMessageName(Document wrappedDoc) throws WrapperProcessingException(Code) | | Get the optional message "name" defined in the wrapped document.
This is the logical name defined in the operation binding, not the type name.
Parameters: wrappedDoc - the wrapped normalized message the message name |
extractMessageType | public static QName extractMessageType(Document wrappedDoc, Definition wsdlDefinition) throws WrapperProcessingException(Code) | | Get the message type of the message wrapper in the wrapped document.
If the wsdlDefinition passed in does not contain a namespace definition for the
type prefix present int the message wrapper the QName namespace will be null
Parameters: wrappedDoc - the wrapped normalized message Parameters: wsdlDefinition - the wsdl definition containing the definition for the normalized message. the message type as QName |
getMessageName | public String getMessageName() throws WrapperProcessingException(Code) | | Get the optional message "name" defined in the wrapped document.
This is the logical name defined in the operation binding, not the type name.
the message name |
getNoOfParts | public int getNoOfParts()(Code) | | the number of parts in the normalized message |
getPartNames | public String[] getPartNames()(Code) | | the names of the parts in the normalized message |
getPartNodes | public NodeList getPartNodes(String partName) throws WrapperProcessingException(Code) | | Returns all Nodes inside the part wrapper
(a jbi:part element may legally contain multiple Elements, or text)
Parameters: partName - the name of the part all Elements in the normalized message part throws: WrapperProcessingException - if the part could not be returned |
getWrappedPart | public Element getWrappedPart(String partName) throws WrapperProcessingException(Code) | | Returns the part, including the part wrapper element around
the part 'payload'
(a jbi:part element may legally contain multiple Elements, or text)
Parameters: partName - the name of the part the wrapped normalized message part throws: WrapperProcessingException - if the part could not be returned |
hasPart | public boolean hasPart(String partName)(Code) | | 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
Parameters: partName - the name of the part to check true if the parsed document contains an entry for the given part - even if the part payload itself is empty.false if the part is not present |
parse | public void parse(Document wrappedDoc, Definition wsdlDefinition) throws WrapperProcessingException(Code) | | Parse a normalized message document in JBI WSDL 1.1 wrapper format
Parameters: wrappedDoc - the wrapped normalized message document Parameters: wsdlDefinition - the full wsdl definition, including the definition for the normalized message throws: WrapperProcessingException - if there is an issue parsing the normalized message,e.g. if the normalized message could not be found in the WSDL |
parse | public void parse(Document wrappedDoc, Message wsdlMessageDefinition) throws WrapperProcessingException(Code) | | Parse a normalized message document in JBI WSDL 1.1 wrapper format
Parameters: wrappedDoc - the wrapped normalized message document Parameters: wsdlMessageDefinition - the wsdl message definition for the normalized message throws: WrapperProcessingException - if there is an issue parsing the normalized message,e.g. if the normalized message does not match the WSDL description |
removeJBIPartWrapper | public static NodeList removeJBIPartWrapper(Element wrappedPart)(Code) | | Given the element for a jbi part wrapper, removes the wrapper element
and returns the part payload
Parameters: wrappedPart - the Element representing the JBI part wrapper the part payload as a List of Element s |
|
|