| com.sun.jbi.wsdl11wrapper.WrapperParser
All known Subclasses: com.sun.jbi.wsdl11wrapper.impl.WrapperParserImpl,
WrapperParser | public interface WrapperParser (Code) | | Assist in processing normalized messages with JBI WSDL 1.1 wrappers
Usage sequence: for each normalized message to process call parse() before using the
get() accessors to obtain details regarding the normalized message.
e.g. along the lines of
parse(normalizedMsg, wsdlDef)
getPartElement(partName1)
getPartElement(partName2)
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 |
Method Summary | |
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) | Element | getWrappedPart(String partName) | boolean | hasPart(String partName) | 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. | 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. |
getMessageName | 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 | int getNoOfParts()(Code) | | the number of parts in the normalized message |
getPartNames | String[] getPartNames()(Code) | | the names of the parts in the normalized message |
getPartNodes | NodeList getPartNodes(String partName) throws WrapperProcessingException(Code) | | Returns all nodes inside the part wrapper
(a jbi:part element may legally contain multiple Elements, or a text node)
Parameters: partName - the name of the part all Nodes in the normalized message part throws: WrapperProcessingException - if the part could not be returned |
getWrappedPart | 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 | 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 | 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 | 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 |
|
|