com.sun.xml.ws.client.dispatch
Class JAXBDispatch
java.lang.Object
com.sun.xml.ws.client.Stub
com.sun.xml.ws.client.dispatch.DispatchImpl<Object>
com.sun.xml.ws.client.dispatch.JAXBDispatch
- All Implemented Interfaces:
- ResponseContextReceiver, WSBindingProvider, Closeable, javax.xml.ws.BindingProvider, javax.xml.ws.Dispatch<Object>
public class JAXBDispatch
- extends DispatchImpl<Object>
The JAXBDispatch
class provides support
for the dynamic invocation of a service endpoint operation using
JAXB objects. The javax.xml.ws.Service
interface acts as a factory for the creation of JAXBDispatch
instances.
Fields inherited from interface javax.xml.ws.BindingProvider |
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY |
Methods inherited from class com.sun.xml.ws.client.dispatch.DispatchImpl |
checkNullAllowed, checkValidDataSourceDispatch, checkValidSOAPMessageDispatch, createSourceDispatch, doInvoke, getPortName, invoke, invokeAsync, invokeAsync, invokeOneWay, isPAYLOADMode, isXMLHttp, methodNotOk, resolveEndpointAddress, resolveURI, setOutboundAttachments, setProperties |
Methods inherited from class com.sun.xml.ws.client.Stub |
close, getBinding, getEndpointReference, getEndpointReference, getExecutor, getInboundHeaders, getRequestContext, getResponseContext, getServiceName, process, processAsync, setAddress, setOutboundHeaders, setOutboundHeaders, setResponseContext, toString |
Methods inherited from interface javax.xml.ws.BindingProvider |
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext |
JAXBDispatch
public JAXBDispatch(QName port,
JAXBContext jc,
javax.xml.ws.Service.Mode mode,
WSServiceDelegate service,
Tube pipe,
BindingImpl binding,
WSEndpointReference epr)
toReturnValue
Object toReturnValue(Packet response)
- Description copied from class:
DispatchImpl
- Obtains the value to return from the response message.
- Specified by:
toReturnValue
in class DispatchImpl<Object>
createPacket
Packet createPacket(Object msg)
- Description copied from class:
DispatchImpl
- Abstract method that is implemented by each concrete Dispatch class
- Specified by:
createPacket
in class DispatchImpl<Object>
- Parameters:
msg
- message passed in from the client program on the invocation
- Returns:
- The Message created returned as the Interface in actuallity a
concrete Message Type
setOutboundHeaders
public void setOutboundHeaders(Object... headers)
- Description copied from interface:
WSBindingProvider
- Sets the out-bound headers to be added to messages sent from
this
BindingProvider
.
Each object must be a JAXB-bound object that is understood
by the JAXBContext
object known by this WSBindingProvider
(that is, if this is a Dispatch
with JAXB, then
JAXBContext
given to Service.createDispatch(QName,JAXBContext,Mode)
and if this is a typed proxy, then JAXBContext
implicitly created by the JAX-WS RI.)
- Specified by:
setOutboundHeaders
in interface WSBindingProvider
- Overrides:
setOutboundHeaders
in class DispatchImpl<Object>
- Parameters:
headers
- Can be null or empty.