public abstract class BaseDispatch<T> extends BindingProvider implements Dispatch
| Modifier and Type | Field and Description |
|---|---|
protected InvocationController |
ic |
protected Service.Mode |
mode |
protected org.apache.axis2.client.ServiceClient |
serviceClient |
BINDING_PROVIDER, endpointDesc, requestContext, responseContext, serviceDelegateENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
BaseDispatch(ServiceDelegate svcDelgate,
org.apache.axis2.jaxws.description.EndpointDescription epDesc,
org.apache.axis2.addressing.EndpointReference epr,
String addressingNamespace,
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(Object value)
Take the input object and turn it into an OMElement so that it can be sent.
|
static WebServiceException |
getFaultResponse(MessageContext msgCtx)
Returns the fault that is contained within the MessageContext for an invocation.
|
Service.Mode |
getMode() |
protected abstract 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(Object obj,
MessageContext requestMsgCtx) |
Object |
invoke(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.
|
Response |
invokeAsync(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.
|
Future<?> |
invokeAsync(Object obj,
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(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(Service.Mode m) |
void |
setServiceClient(org.apache.axis2.client.ServiceClient sc) |
checkMaintainSessionState, getBinding, getEndpointDescription, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext, getServiceDelegate, setupSessionContext, useSoapActionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContextprotected InvocationController ic
protected org.apache.axis2.client.ServiceClient serviceClient
protected Service.Mode mode
protected BaseDispatch(ServiceDelegate svcDelgate, org.apache.axis2.jaxws.description.EndpointDescription epDesc, org.apache.axis2.addressing.EndpointReference epr, String addressingNamespace, WebServiceFeature... features)
protected abstract Message createMessageFromValue(Object value)
value - protected abstract Object getValueFromMessage(Message message)
message - protected abstract AsyncResponse createAsyncResponseListener()
public Object invoke(Object obj) throws WebServiceException
invoke in interface DispatchWebServiceExceptionprotected void initMessageContext(Object obj, MessageContext requestMsgCtx)
public void invokeOneWay(Object obj) throws WebServiceException
invokeOneWay in interface DispatchWebServiceExceptionpublic Future<?> invokeAsync(Object obj, AsyncHandler asynchandler) throws WebServiceException
invokeAsync in interface DispatchWebServiceExceptionpublic Response invokeAsync(Object obj) throws WebServiceException
invokeAsync in interface DispatchWebServiceExceptionpublic void setServiceClient(org.apache.axis2.client.ServiceClient sc)
public Service.Mode getMode()
public void setMode(Service.Mode m)
public static WebServiceException getFaultResponse(MessageContext msgCtx)
msgCtx - public boolean hasFaultResponse(MessageContext msgCtx)
msgCtx - Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.