public abstract class BaseDispatch<T> extends BindingProvider implements javax.xml.ws.Dispatch
| Modifier and Type | Field and Description |
|---|---|
protected InvocationController |
ic |
protected javax.xml.ws.Service.Mode |
mode |
protected ServiceClient |
serviceClient |
BINDING_PROVIDER, endpointDesc, requestContext, responseContext, serviceDelegate| Modifier | Constructor and Description |
|---|---|
protected |
BaseDispatch(ServiceDelegate svcDelgate,
EndpointDescription epDesc,
EndpointReference epr,
java.lang.String addressingNamespace,
javax.xml.ws.WebServiceFeature... features) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AsyncResponse |
createAsyncResponseListener()
Creates an instance of the AsyncListener that is to be used for waiting for async responses.
|
protected abstract Message |
createMessageFromValue(java.lang.Object value)
Take the input object and turn it into an OMElement so that it can be sent.
|
static javax.xml.ws.WebServiceException |
getFaultResponse(MessageContext msgCtx)
Returns the fault that is contained within the MessageContext for an invocation.
|
javax.xml.ws.Service.Mode |
getMode() |
protected abstract java.lang.Object |
getValueFromMessage(Message message)
Given a message, return the business object based on the requestor's required format (PAYLOAD
vs.
|
boolean |
hasFaultResponse(MessageContext msgCtx)
Returns a boolean indicating whether or not the MessageContext contained a fault.
|
protected void |
initMessageContext(java.lang.Object obj,
MessageContext requestMsgCtx) |
java.lang.Object |
invoke(java.lang.Object obj)
Note to developer: When making a change or fix to this method, please consider
all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS.
|
javax.xml.ws.Response |
invokeAsync(java.lang.Object obj)
Note to developer: When making a change or fix to this method, please consider
all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS.
|
java.util.concurrent.Future<?> |
invokeAsync(java.lang.Object obj,
javax.xml.ws.AsyncHandler asynchandler)
Note to developer: When making a change or fix to this method, please consider
all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS.
|
void |
invokeOneWay(java.lang.Object obj)
Note to developer: When making a change or fix to this method, please consider
all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS.
|
void |
setMode(javax.xml.ws.Service.Mode m) |
void |
setServiceClient(ServiceClient sc) |
checkMaintainSessionState, getBinding, getEndpointDescription, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext, getServiceDelegate, setupSessionContext, useSoapActionprotected InvocationController ic
protected ServiceClient serviceClient
protected javax.xml.ws.Service.Mode mode
protected BaseDispatch(ServiceDelegate svcDelgate, EndpointDescription epDesc, EndpointReference epr, java.lang.String addressingNamespace, javax.xml.ws.WebServiceFeature... features)
protected abstract Message createMessageFromValue(java.lang.Object value)
value - protected abstract java.lang.Object getValueFromMessage(Message message)
message - protected abstract AsyncResponse createAsyncResponseListener()
public java.lang.Object invoke(java.lang.Object obj)
throws javax.xml.ws.WebServiceException
invoke in interface javax.xml.ws.Dispatchjavax.xml.ws.WebServiceExceptionprotected void initMessageContext(java.lang.Object obj,
MessageContext requestMsgCtx)
public void invokeOneWay(java.lang.Object obj)
throws javax.xml.ws.WebServiceException
invokeOneWay in interface javax.xml.ws.Dispatchjavax.xml.ws.WebServiceExceptionpublic java.util.concurrent.Future<?> invokeAsync(java.lang.Object obj,
javax.xml.ws.AsyncHandler asynchandler)
throws javax.xml.ws.WebServiceException
invokeAsync in interface javax.xml.ws.Dispatchjavax.xml.ws.WebServiceExceptionpublic javax.xml.ws.Response invokeAsync(java.lang.Object obj)
throws javax.xml.ws.WebServiceException
invokeAsync in interface javax.xml.ws.Dispatchjavax.xml.ws.WebServiceExceptionpublic void setServiceClient(ServiceClient sc)
public javax.xml.ws.Service.Mode getMode()
public void setMode(javax.xml.ws.Service.Mode m)
public static javax.xml.ws.WebServiceException getFaultResponse(MessageContext msgCtx)
msgCtx - public boolean hasFaultResponse(MessageContext msgCtx)
msgCtx - Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.