org.apache.axis2.jaxws.client.dispatch
Class BaseDispatch<T>
java.lang.Object
org.apache.axis2.jaxws.BindingProvider
org.apache.axis2.jaxws.client.dispatch.BaseDispatch<T>
- All Implemented Interfaces:
- BindingProvider, Dispatch
- Direct Known Subclasses:
- JAXBDispatch, XMLDispatch
public abstract class BaseDispatch<T>
- extends BindingProvider
- implements Dispatch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ic
protected InvocationController ic
serviceClient
protected ServiceClient serviceClient
mode
protected Service.Mode mode
BaseDispatch
protected BaseDispatch(ServiceDelegate svcDelgate,
EndpointDescription epDesc,
EndpointReference epr,
java.lang.String addressingNamespace,
WebServiceFeature... features)
createMessageFromValue
protected abstract Message createMessageFromValue(java.lang.Object value)
- Take the input object and turn it into an OMElement so that it can be sent.
- Parameters:
value
-
- Returns:
getValueFromMessage
protected abstract java.lang.Object getValueFromMessage(Message message)
- Given a message, return the business object based on the requestor's required format (PAYLOAD
vs. MESSAGE) and datatype.
- Parameters:
message
-
- Returns:
createAsyncResponseListener
protected abstract AsyncResponse createAsyncResponseListener()
- Creates an instance of the AsyncListener that is to be used for waiting for async responses.
- Returns:
- a configured AsyncListener instance
invoke
public java.lang.Object invoke(java.lang.Object obj)
throws WebServiceException
- Specified by:
invoke
in interface Dispatch
- Throws:
WebServiceException
invokeOneWay
public void invokeOneWay(java.lang.Object obj)
throws WebServiceException
- Specified by:
invokeOneWay
in interface Dispatch
- Throws:
WebServiceException
invokeAsync
public java.util.concurrent.Future<?> invokeAsync(java.lang.Object obj,
AsyncHandler asynchandler)
throws WebServiceException
- Specified by:
invokeAsync
in interface Dispatch
- Throws:
WebServiceException
invokeAsync
public Response invokeAsync(java.lang.Object obj)
throws WebServiceException
- Specified by:
invokeAsync
in interface Dispatch
- Throws:
WebServiceException
setServiceClient
public void setServiceClient(ServiceClient sc)
getMode
public Service.Mode getMode()
setMode
public void setMode(Service.Mode m)
getFaultResponse
public static WebServiceException getFaultResponse(MessageContext msgCtx)
- Returns the fault that is contained within the MessageContext for an invocation. If no fault
exists, null will be returned.
- Parameters:
msgCtx
-
- Returns:
hasFaultResponse
public boolean hasFaultResponse(MessageContext msgCtx)
- Returns a boolean indicating whether or not the MessageContext contained a fault.
- Parameters:
msgCtx
-
- Returns:
Copyright © 2007 Apache Web Services Project. All Rights Reserved.