public abstract class ResponseBuilder extends Object
Message
, disassembles it, and moves obtained Java values
to the expected places.Modifier and Type | Class and Description |
---|---|
static class |
ResponseBuilder.AttachmentBuilder
Reads an Attachment into a Java parameter.
|
static class |
ResponseBuilder.Body
Reads the whole payload into a single JAXB bean.
|
static class |
ResponseBuilder.Composite
ResponseBuilder that is a composition of multiple
ResponseBuilder s. |
static class |
ResponseBuilder.DocLit
Treats a payload as multiple parts wrapped into one element,
and processes all such wrapped parts.
|
static class |
ResponseBuilder.Header
Reads a header into a JAXB object.
|
static class |
ResponseBuilder.NullSetter
ResponseBuilder that sets the VM uninitialized value to the type. |
static class |
ResponseBuilder.RpcLit
Treats a payload as multiple parts wrapped into one element,
and processes all such wrapped parts.
|
Modifier and Type | Field and Description |
---|---|
static ResponseBuilder |
NONE
The singleton instance that produces null return value.
|
protected Map<QName,com.sun.xml.ws.client.sei.ResponseBuilder.WrappedPartBuilder> |
wrappedParts
ResponseBuilder.PartBuilder keyed by the element name (inside the wrapper element.) |
protected QName |
wrapperName |
Constructor and Description |
---|
ResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
static Object |
getVMUninitializedValue(Type type)
Returns the 'uninitialized' value for the given type.
|
static String |
getWSDLPartName(com.sun.xml.ws.api.message.Attachment att)
Gets the WSDL part name of this attachment.
|
abstract Object |
readResponse(com.sun.xml.ws.api.message.Message reply,
Object[] args)
Reads a response
Message , disassembles it, and moves obtained Java values
to the expected places. |
protected Object |
readWrappedResponse(com.sun.xml.ws.api.message.Message msg,
Object[] args) |
protected Map<QName,com.sun.xml.ws.client.sei.ResponseBuilder.WrappedPartBuilder> wrappedParts
ResponseBuilder.PartBuilder
keyed by the element name (inside the wrapper element.)protected QName wrapperName
public static final ResponseBuilder NONE
public abstract Object readResponse(com.sun.xml.ws.api.message.Message reply, Object[] args) throws JAXBException, XMLStreamException
Message
, disassembles it, and moves obtained Java values
to the expected places.reply
- The reply Message
to be de-composed.args
- The Java arguments given to the SEI method invocation.
Some parts of the reply message may be set to Holder
s in the arguments.JAXBException
- if there's an error during unmarshalling the reply message.XMLStreamException
- if there's an error during unmarshalling the reply message.protected Object readWrappedResponse(com.sun.xml.ws.api.message.Message msg, Object[] args) throws JAXBException, XMLStreamException
JAXBException
XMLStreamException
public static Object getVMUninitializedValue(Type type)
For primitive types, it's '0', and for reference types, it's null.
public static final String getWSDLPartName(com.sun.xml.ws.api.message.Attachment att)
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:
Copyright © 2015 Oracle Corporation. All rights reserved.