Package 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:
Component
,ComponentRegistry
,ResponseContextReceiver
,WSBindingProvider
,jakarta.xml.ws.BindingProvider
,jakarta.xml.ws.Dispatch<Object>
,Closeable
,AutoCloseable
public class JAXBDispatch extends DispatchImpl<Object>
TheJAXBDispatch
class provides support for the dynamic invocation of a service endpoint operation using JAXB objects. Thejakarta.xml.ws.Service
interface acts as a factory for the creation ofJAXBDispatch
instances.- Version:
- 1.0
- Author:
- WS Development Team
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.client.Stub
addrVersion, binding, endpointReference, operationDispatcher, owner, portInfo, portname, PREVENT_SYNC_START_FOR_ASYNC_INVOKE, requestContext, wsdlPort
-
-
Constructor Summary
Constructors Constructor Description JAXBDispatch(WSPortInfo portInfo, jakarta.xml.bind.JAXBContext jc, jakarta.xml.ws.Service.Mode mode, BindingImpl binding, WSEndpointReference epr)
JAXBDispatch(QName port, jakarta.xml.bind.JAXBContext jc, jakarta.xml.ws.Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setOutboundHeaders(Object... headers)
Sets the out-bound headers to be added to messages sent from thisBindingProvider
.-
Methods inherited from class com.sun.xml.ws.client.dispatch.DispatchImpl
checkValidDataSourceDispatch, checkValidSOAPMessageDispatch, createSourceDispatch, createSourceDispatch, doInvoke, getPortName, invoke, invokeAsync, invokeAsync, invokeOneWay, resolveURI, setOutboundAttachments
-
Methods inherited from class com.sun.xml.ws.client.Stub
close, configureFiber, getBinding, getComponents, getEndpointReference, getEndpointReference, getExecutor, getInboundHeaders, getManagedObjectManager, getOperationDispatcher, getPortInfo, getRequestContext, getResponseContext, getService, getServiceName, getSPI, getTubes, getWSDLPort, getWSEndpointReference, process, processAsync, resetRequestContext, setAddress, setOutboundHeaders, setOutboundHeaders, setResponseContext, toString
-
-
-
-
Constructor Detail
-
JAXBDispatch
@Deprecated public JAXBDispatch(QName port, jakarta.xml.bind.JAXBContext jc, jakarta.xml.ws.Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr)
Deprecated.
-
JAXBDispatch
public JAXBDispatch(WSPortInfo portInfo, jakarta.xml.bind.JAXBContext jc, jakarta.xml.ws.Service.Mode mode, BindingImpl binding, WSEndpointReference epr)
-
-
Method Detail
-
setOutboundHeaders
public void setOutboundHeaders(Object... headers)
Description copied from interface:WSBindingProvider
Sets the out-bound headers to be added to messages sent from thisBindingProvider
.Each object must be a JAXB-bound object that is understood by the
JAXBContext
object known by thisWSBindingProvider
(that is, if this is aDispatch
with JAXB, thenJAXBContext
given toService.createDispatch(QName,JAXBContext,Mode)
and if this is a typed proxy, thenJAXBContext
implicitly created by the JAX-WS RI.)- Specified by:
setOutboundHeaders
in interfaceWSBindingProvider
- Overrides:
setOutboundHeaders
in classDispatchImpl<Object>
- Parameters:
headers
- Can be null or empty.
-
-