Class InvocationControllerImpl
- java.lang.Object
-
- org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl
-
- All Implemented Interfaces:
InvocationController
- Direct Known Subclasses:
AxisInvocationController
public abstract class InvocationControllerImpl extends Object implements InvocationController
An abstract implementation of the InvocationController interface.
-
-
Constructor Summary
Constructors Constructor Description InvocationControllerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract MessageContextdoInvoke(MessageContext request)abstract ResponsedoInvokeAsync(MessageContext mc)abstract Future<?>doInvokeAsync(MessageContext mc, AsyncHandler asyncHandler)protected abstract voiddoInvokeOneWay(MessageContext mc)InvocationContextinvoke(InvocationContext ic)Performs a synchronous (blocking) invocation of a target service.ResponseinvokeAsync(InvocationContext ic)Performs an asynchronous (non-blocking) invocation of the client based on a callback model.Future<?>invokeAsync(InvocationContext ic, AsyncHandler asyncHandler)Performs an asynchronous (non-blocking) invocation of the client based on a polling model.voidinvokeOneWay(InvocationContext ic)Performs a one-way invocation of the client.protected abstract voidprepareRequest(MessageContext mc)Abstract method that must be implemented by whoever is providing the specific client binding.protected abstract voidprepareResponse(MessageContext mc)Abstract method that must be implemented by whoever is providing the specific client binding.
-
-
-
Method Detail
-
invoke
public InvocationContext invoke(InvocationContext ic)
Description copied from interface:InvocationControllerPerforms a synchronous (blocking) invocation of a target service. The InvocationContext passed in should contain a valid MessageContext containing the properties and message to be sent for the request. The response contents will be processed and placed in the InvocationContext as well.- Specified by:
invokein interfaceInvocationController- Returns:
-
doInvoke
protected abstract MessageContext doInvoke(MessageContext request)
-
invokeOneWay
public void invokeOneWay(InvocationContext ic) throws Exception
Description copied from interface:InvocationControllerPerforms a one-way invocation of the client. This is SHOULD NOT be a robust invocation, so any fault that occurs during the processing of the request will not be returned to the client. Errors returned to the client are problems that occurred during the sending of the message to the server.- Specified by:
invokeOneWayin interfaceInvocationController- Throws:
Exception
-
doInvokeOneWay
protected abstract void doInvokeOneWay(MessageContext mc)
-
invokeAsync
public Response invokeAsync(InvocationContext ic)
Description copied from interface:InvocationControllerPerforms an asynchronous (non-blocking) invocation of the client based on a callback model. The AsyncHandler that is passed in is the callback that the client programmer supplied when they invoked their JAX-WS Dispatch or their SEI-based dynamic proxy.- Specified by:
invokeAsyncin interfaceInvocationController- Returns:
-
doInvokeAsync
public abstract Response doInvokeAsync(MessageContext mc)
-
invokeAsync
public Future<?> invokeAsync(InvocationContext ic, AsyncHandler asyncHandler)
Description copied from interface:InvocationControllerPerforms an asynchronous (non-blocking) invocation of the client based on a polling model. The Response object that is returned allows the client programmer to poll against it to see if a response has been sent back by the server.- Specified by:
invokeAsyncin interfaceInvocationController- Returns:
-
doInvokeAsync
public abstract Future<?> doInvokeAsync(MessageContext mc, AsyncHandler asyncHandler)
-
prepareRequest
protected abstract void prepareRequest(MessageContext mc)
Abstract method that must be implemented by whoever is providing the specific client binding. Once this is called, everything that is needed to invoke the operation must be available in the MessageContext.- Parameters:
mc-
-
prepareResponse
protected abstract void prepareResponse(MessageContext mc)
Abstract method that must be implemented by whoever is providing the specific client binding. This is called after the response has come back and allows the client binding to put whatever info it has in the response MessageContext.- Parameters:
mc-
-
-