org.apache.axis2.jaxws.core.controller.impl
Class InvocationControllerImpl

java.lang.Object
  extended by 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
InvocationControllerImpl()
           
 
Method Summary
protected abstract  MessageContext doInvoke(MessageContext request)
           
abstract  Response doInvokeAsync(MessageContext mc)
           
abstract  Future<?> doInvokeAsync(MessageContext mc, AsyncHandler asyncHandler)
           
protected abstract  void doInvokeOneWay(MessageContext mc)
           
 InvocationContext invoke(InvocationContext ic)
          Performs a synchronous (blocking) invocation of a target service.
 Response invokeAsync(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.
 void invokeOneWay(InvocationContext ic)
          Performs a one-way invocation of the client.
protected abstract  void prepareRequest(MessageContext mc)
          Abstract method that must be implemented by whoever is providing the specific client binding.
protected abstract  void prepareResponse(MessageContext mc)
          Abstract method that must be implemented by whoever is providing the specific client binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationControllerImpl

public InvocationControllerImpl()
Method Detail

invoke

public InvocationContext invoke(InvocationContext ic)
Description copied from interface: InvocationController
Performs 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:
invoke in interface InvocationController
Returns:

doInvoke

protected abstract MessageContext doInvoke(MessageContext request)

invokeOneWay

public void invokeOneWay(InvocationContext ic)
                  throws Exception
Description copied from interface: InvocationController
Performs 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:
invokeOneWay in interface InvocationController
Throws:
Exception

doInvokeOneWay

protected abstract void doInvokeOneWay(MessageContext mc)

invokeAsync

public Response invokeAsync(InvocationContext ic)
Description copied from interface: InvocationController
Performs 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:
invokeAsync in interface InvocationController
Returns:

doInvokeAsync

public abstract Response doInvokeAsync(MessageContext mc)

invokeAsync

public Future<?> invokeAsync(InvocationContext ic,
                             AsyncHandler asyncHandler)
Description copied from interface: InvocationController
Performs 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:
invokeAsync in interface InvocationController
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 -


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.