- All Implemented Interfaces:
Component
,ComponentRegistry
,ResponseContextReceiver
,WSBindingProvider
,jakarta.xml.ws.BindingProvider
,jakarta.xml.ws.Dispatch<Object>
,Closeable
,AutoCloseable
The
JAXBDispatch
class provides support
for the dynamic invocation of a service endpoint operation using
JAXB objects. The jakarta.xml.ws.Service
interface acts as a factory for the creation of JAXBDispatch
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
Fields inherited from interface jakarta.xml.ws.BindingProvider
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
-
Constructor Summary
ConstructorDescriptionJAXBDispatch
(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
Modifier and TypeMethodDescriptionvoid
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.xml.ws.BindingProvider
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext
-
Constructor Details
-
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 Details
-
setOutboundHeaders
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.
-