Class BaseDispatch<T>
java.lang.Object
org.apache.axis2.jaxws.BindingProvider
org.apache.axis2.jaxws.client.dispatch.BaseDispatch<T>
- All Implemented Interfaces:
jakarta.xml.ws.BindingProvider,jakarta.xml.ws.Dispatch,BindingProvider
- Direct Known Subclasses:
JAXBDispatch,XMLDispatch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InvocationControllerprotected jakarta.xml.ws.Service.Modeprotected org.apache.axis2.client.ServiceClientFields inherited from class org.apache.axis2.jaxws.BindingProvider
BINDING_PROVIDER, endpointDesc, requestContext, responseContext, serviceDelegateFields 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
ConstructorsModifierConstructorDescriptionprotectedBaseDispatch(ServiceDelegate svcDelgate, org.apache.axis2.jaxws.description.EndpointDescription epDesc, org.apache.axis2.addressing.EndpointReference epr, String addressingNamespace, jakarta.xml.ws.WebServiceFeature... features) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AsyncResponseCreates an instance of the AsyncListener that is to be used for waiting for async responses.protected abstract MessagecreateMessageFromValue(Object value) Take the input object and turn it into an OMElement so that it can be sent.static jakarta.xml.ws.WebServiceExceptiongetFaultResponse(MessageContext msgCtx) Returns the fault that is contained within the MessageContext for an invocation.jakarta.xml.ws.Service.ModegetMode()protected abstract ObjectgetValueFromMessage(Message message) Given a message, return the business object based on the requestor's required format (PAYLOAD vs.booleanhasFaultResponse(MessageContext msgCtx) Returns a boolean indicating whether or not the MessageContext contained a fault.protected voidinitMessageContext(Object obj, MessageContext requestMsgCtx) 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.jakarta.xml.ws.ResponseinvokeAsync(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, jakarta.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.voidinvokeOneWay(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.voidsetMode(jakarta.xml.ws.Service.Mode m) voidsetServiceClient(org.apache.axis2.client.ServiceClient sc) Methods inherited from class org.apache.axis2.jaxws.BindingProvider
checkMaintainSessionState, getBinding, getEndpointDescription, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext, getServiceDelegate, setupSessionContext, useSoapActionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.xml.ws.BindingProvider
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext
-
Field Details
-
ic
-
serviceClient
protected org.apache.axis2.client.ServiceClient serviceClient -
mode
protected jakarta.xml.ws.Service.Mode mode
-
-
Constructor Details
-
BaseDispatch
protected BaseDispatch(ServiceDelegate svcDelgate, org.apache.axis2.jaxws.description.EndpointDescription epDesc, org.apache.axis2.addressing.EndpointReference epr, String addressingNamespace, jakarta.xml.ws.WebServiceFeature... features)
-
-
Method Details
-
createMessageFromValue
Take the input object and turn it into an OMElement so that it can be sent.- Parameters:
value-- Returns:
-
getValueFromMessage
Given a message, return the business object based on the requestor's required format (PAYLOAD vs. MESSAGE) and datatype.- Parameters:
message-- Returns:
-
createAsyncResponseListener
Creates an instance of the AsyncListener that is to be used for waiting for async responses.- Returns:
- a configured AsyncListener instance
-
invoke
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. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()- Specified by:
invokein interfacejakarta.xml.ws.Dispatch<T>- Throws:
jakarta.xml.ws.WebServiceException
-
initMessageContext
-
invokeOneWay
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. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()- Specified by:
invokeOneWayin interfacejakarta.xml.ws.Dispatch<T>- Throws:
jakarta.xml.ws.WebServiceException
-
invokeAsync
public Future<?> invokeAsync(Object obj, jakarta.xml.ws.AsyncHandler asynchandler) throws jakarta.xml.ws.WebServiceException 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. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()- Specified by:
invokeAsyncin interfacejakarta.xml.ws.Dispatch<T>- Throws:
jakarta.xml.ws.WebServiceException
-
invokeAsync
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. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()- Specified by:
invokeAsyncin interfacejakarta.xml.ws.Dispatch<T>- Throws:
jakarta.xml.ws.WebServiceException
-
setServiceClient
public void setServiceClient(org.apache.axis2.client.ServiceClient sc) -
getMode
public jakarta.xml.ws.Service.Mode getMode() -
setMode
public void setMode(jakarta.xml.ws.Service.Mode m) -
getFaultResponse
Returns the fault that is contained within the MessageContext for an invocation. If no fault exists, null will be returned.- Parameters:
msgCtx-- Returns:
-
hasFaultResponse
Returns a boolean indicating whether or not the MessageContext contained a fault.- Parameters:
msgCtx-- Returns:
-