| java.lang.Object com.sun.xml.ws.client.sei.ResponseBuilder
ResponseBuilder | abstract class ResponseBuilder (Code) | | Reads a response
Message , disassembles it, and moves obtained Java values
to the expected places.
author: Kohsuke Kawaguchi author: Jitendra Kotamraju |
Inner Class :abstract static class AttachmentBuilder extends ResponseBuilder | |
Field Summary | |
public static ResponseBuilder | NONE The singleton instance that produces null return value. |
Method Summary | |
public static Object | getVMUninitializedValue(Type type) Returns the 'uninitialized' value for the given type. | final public static String | getWSDLPartName(com.sun.xml.ws.api.message.Attachment att) Gets the WSDL part name of this attachment. | abstract Object | readResponse(Message reply, Object[] args) Reads a response
Message , disassembles it, and moves obtained Java values
to the expected places.
Parameters: reply - The reply Message to be de-composed. Parameters: args - The Java arguments given to the SEI method invocation.Some parts of the reply message may be set to Holders in the arguments.If a part of the reply message is returned as a return value fromthe SEI method, this method returns that value. |
NONE | public static ResponseBuilder NONE(Code) | | The singleton instance that produces null return value.
Used for operations that doesn't have any output.
|
getVMUninitializedValue | public static Object getVMUninitializedValue(Type type)(Code) | | Returns the 'uninitialized' value for the given type.
For primitive types, it's '0', and for reference types, it's null.
|
getWSDLPartName | final public static String getWSDLPartName(com.sun.xml.ws.api.message.Attachment att)(Code) | | Gets the WSDL part name of this attachment.
According to WSI AP 1.0
3.8 Value-space of Content-Id Header
Definition: content-id part encoding
The "content-id part encoding" consists of the concatenation of:
The value of the name attribute of the wsdl:part element referenced by the mime:content, in which characters disallowed in content-id headers (non-ASCII characters as represented by code points above 0x7F) are escaped as follows:
o Each disallowed character is converted to UTF-8 as one or more bytes.
o Any bytes corresponding to a disallowed character are escaped with the URI escaping mechanism (that is, converted to %HH, where HH is the hexadecimal notation of the byte value).
o The original character is replaced by the resulting character sequence.
The character '=' (0x3D).
A globally unique value such as a UUID.
The character '@' (0x40).
A valid domain name under the authority of the entity constructing the message.
So a wsdl:part fooPart will be encoded as:
nullif the parsing fails. |
readResponse | abstract Object readResponse(Message reply, Object[] args) throws JAXBException, XMLStreamException(Code) | | Reads a response
Message , disassembles it, and moves obtained Java values
to the expected places.
Parameters: reply - The reply Message to be de-composed. Parameters: args - The Java arguments given to the SEI method invocation.Some parts of the reply message may be set to Holders in the arguments.If a part of the reply message is returned as a return value fromthe SEI method, this method returns that value. Otherwise null. throws: JAXBException - if there's an error during unmarshalling the reply message. throws: XMLStreamException - if there's an error during unmarshalling the reply message. |
|
|