Package com.sun.xml.ws.client.dispatch
Class DispatchImpl<T>
java.lang.Object
com.sun.xml.ws.client.Stub
com.sun.xml.ws.client.dispatch.DispatchImpl<T>
- All Implemented Interfaces:
Component,ComponentRegistry,ResponseContextReceiver,WSBindingProvider,BindingProvider,Dispatch<T>,Closeable,AutoCloseable
- Direct Known Subclasses:
DataSourceDispatch,JAXBDispatch,MessageDispatch,PacketDispatch,SOAPMessageDispatch
The
DispatchImpl abstract class provides support
for the dynamic invocation of a service endpoint operation using XML
constructs, JAXB objects or SOAPMessage. The jakarta.xml.ws.Service
interface acts as a factory for the creation of DispatchImpl
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, wsdlPortFields 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
ConstructorsModifierConstructorDescriptionprotectedDispatchImpl(WSPortInfo portInfo, Service.Mode mode, Tube pipe, BindingImpl binding, WSEndpointReference epr, boolean allowFaultResponseMsg) protectedDispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) protectedDispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, WSEndpointReference epr, boolean allowFaultResponseMsg) protectedDispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, Tube pipe, WSEndpointReference epr, boolean allowFaultResponseMsg) protectedDispatchImpl(QName port, Service.Mode mode, WSServiceDelegate owner, Tube pipe, BindingImpl binding, WSEndpointReference epr) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckValidDataSourceDispatch(WSBinding binding, Service.Mode mode) static voidcheckValidSOAPMessageDispatch(WSBinding binding, Service.Mode mode) createSourceDispatch(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) createSourceDispatch(QName port, Service.Mode mode, WSServiceDelegate owner, Tube pipe, BindingImpl binding, WSEndpointReference epr) Deprecated.final TdoInvoke(T in, RequestContext rc, ResponseContextReceiver receiver) Synchronously invokes a service.final QNameGets the port name that this stub is configured to talk to.final TinvokeAsync(T param) final Future<?>invokeAsync(T param, AsyncHandler<T> asyncHandler) final voidinvokeOneWay(T in) protected StringresolveURI(URI endpointURI, String pathInfo, String queryString) protected AttachmentSetvoidsetOutboundHeaders(Object... headers) Sets the out-bound headers to be added to messages sent from thisBindingProvider.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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.xml.ws.BindingProvider
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext
-
Constructor Details
-
DispatchImpl
@Deprecated protected DispatchImpl(QName port, Service.Mode mode, WSServiceDelegate owner, Tube pipe, BindingImpl binding, @Nullable WSEndpointReference epr) Deprecated.- Parameters:
port- dispatch instance is associated with this wsdl port qNamemode- Service.mode associated with this Dispatch instance - Service.mode.MESSAGE or Service.mode.PAYLOADowner- Service that created the Dispatchpipe- Master pipe for the pipelinebinding- Binding of this Dispatch instance, current one of SOAP/HTTP or XML/HTTP
-
DispatchImpl
protected DispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, @Nullable WSEndpointReference epr) - Parameters:
portInfo- dispatch instance is associated with this portInfomode- Service.mode associated with this Dispatch instance - Service.mode.MESSAGE or Service.mode.PAYLOADbinding- Binding of this Dispatch instance, current one of SOAP/HTTP or XML/HTTP
-
DispatchImpl
protected DispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, @Nullable WSEndpointReference epr, boolean allowFaultResponseMsg) - Parameters:
portInfo- dispatch instance is associated with this portInfomode- Service.mode associated with this Dispatch instance - Service.mode.MESSAGE or Service.mode.PAYLOADbinding- Binding of this Dispatch instance, current one of SOAP/HTTP or XML/HTTPallowFaultResponseMsg- A packet containing a SOAP fault message is allowed as the response to a request on this dispatch instance.
-
DispatchImpl
protected DispatchImpl(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, Tube pipe, @Nullable WSEndpointReference epr, boolean allowFaultResponseMsg) - Parameters:
portInfo- dispatch instance is associated with this portInfomode- Service.mode associated with this Dispatch instance - Service.mode.MESSAGE or Service.mode.PAYLOADbinding- Binding of this Dispatch instance, current one of SOAP/HTTP or XML/HTTPpipe- Master pipe for the pipelineallowFaultResponseMsg- A packet containing a SOAP fault message is allowed as the response to a request on this dispatch instance.
-
DispatchImpl
protected DispatchImpl(WSPortInfo portInfo, Service.Mode mode, Tube pipe, BindingImpl binding, @Nullable WSEndpointReference epr, boolean allowFaultResponseMsg) - Parameters:
portInfo- dispatch instance is associated with this wsdl port qNamemode- Service.mode associated with this Dispatch instance - Service.mode.MESSAGE or Service.mode.PAYLOADpipe- Master pipe for the pipelinebinding- Binding of this Dispatch instance, current one of SOAP/HTTP or XML/HTTPallowFaultResponseMsg- A packet containing a SOAP fault message is allowed as the response to a request on this dispatch instance.
-
-
Method Details
-
invokeAsync
- Specified by:
invokeAsyncin interfaceDispatch<T>
-
invokeAsync
- Specified by:
invokeAsyncin interfaceDispatch<T>
-
doInvoke
Synchronously invokes a service. SeeStub.process(Packet, RequestContext, ResponseContextReceiver)on why it takes aRequestContextandResponseContextReceiveras a parameter. -
invoke
-
invokeOneWay
- Specified by:
invokeOneWayin interfaceDispatch<T>
-
checkValidSOAPMessageDispatch
-
checkValidDataSourceDispatch
-
getPortName
Description copied from class:StubGets the port name that this stub is configured to talk to.When
Stub.wsdlPortis non-null, the port name is always the same asWSDLPort.getName(), but this method returns a port name even if no WSDL is available for this stub.- Specified by:
getPortNamein classStub
-
resolveURI
-
setOutboundAttachments
-
setOutboundHeaders
Description copied from interface:WSBindingProviderSets 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
JAXBContextobject known by thisWSBindingProvider(that is, if this is aDispatchwith JAXB, thenJAXBContextgiven toService.createDispatch(QName,JAXBContext,Mode)and if this is a typed proxy, thenJAXBContextimplicitly created by the JAX-WS RI.)- Specified by:
setOutboundHeadersin interfaceWSBindingProvider- Parameters:
headers- Can be null or empty.
-
createSourceDispatch
@Deprecated public static Dispatch<Source> createSourceDispatch(QName port, Service.Mode mode, WSServiceDelegate owner, Tube pipe, BindingImpl binding, WSEndpointReference epr) Deprecated. -
createSourceDispatch
public static Dispatch<Source> createSourceDispatch(WSPortInfo portInfo, Service.Mode mode, BindingImpl binding, WSEndpointReference epr)
-