Package org.apache.axis2.jaxws.server
Class EndpointController
- java.lang.Object
-
- org.apache.axis2.jaxws.server.EndpointController
-
public class EndpointController extends Object
The EndpointController is the server side equivalent to the InvocationController on the client side. It is an abstraction of the server side endpoint invocation that encapsulates all of the Axis2 semantics. Like the InvocationController, this class is responsible for invoking the JAX-WS application handler chain along with taking all of the provided information and setting up what's needed to perform the actual invocation of the endpoint.
-
-
Constructor Summary
Constructors Constructor Description EndpointController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EndpointDispatchergetEndpointDispatcher(Class serviceImplClass, Object serviceInstance)protected EndpointDispatchergetEndpointDispatcher(MessageContext mc, Class serviceImplClass, Object serviceInstance)protected booleanhandleRequest(EndpointInvocationContext eic)protected booleanhandleResponse(EndpointInvocationContext eic)EndpointInvocationContextinvoke(EndpointInvocationContext eic)This method is used to start the JAX-WS invocation of a target endpoint.voidinvokeAsync(EndpointInvocationContext eic)voidinvokeOneWay(EndpointInvocationContext eic)static booleanisOneWay(MessageContext mc)protected voidrequestReceived(EndpointInvocationContext eic)This method will retrieve all the InvocationListenerFactory instances and call the 'createInvocationListener' instance on each.protected voidresponseReady(EndpointInvocationContext eic)This will call the InvocationListener instances that were called during the request processing for this message.
-
-
-
Method Detail
-
invoke
public EndpointInvocationContext invoke(EndpointInvocationContext eic) throws AxisFault, WebServiceException
This method is used to start the JAX-WS invocation of a target endpoint. It takes an InvocationContext, which must have a MessageContext specied for the request. Once the invocation is complete, the information will be stored- Parameters:
eic-- Returns:
- Throws:
AxisFaultWebServiceException
-
invokeAsync
public void invokeAsync(EndpointInvocationContext eic)
-
invokeOneWay
public void invokeOneWay(EndpointInvocationContext eic)
-
handleRequest
protected boolean handleRequest(EndpointInvocationContext eic) throws AxisFault, WebServiceException
- Throws:
AxisFaultWebServiceException
-
handleResponse
protected boolean handleResponse(EndpointInvocationContext eic)
-
getEndpointDispatcher
protected EndpointDispatcher getEndpointDispatcher(Class serviceImplClass, Object serviceInstance) throws Exception
- Throws:
Exception
-
getEndpointDispatcher
protected EndpointDispatcher getEndpointDispatcher(MessageContext mc, Class serviceImplClass, Object serviceInstance) throws Exception
- Throws:
Exception
-
isOneWay
public static boolean isOneWay(MessageContext mc)
-
requestReceived
protected void requestReceived(EndpointInvocationContext eic)
This method will retrieve all the InvocationListenerFactory instances and call the 'createInvocationListener' instance on each. If a non-null listener is returned, the 'requestReceived' method will be called on the instance, and it will be added to the EndpointInvocationContext.
-
responseReady
protected void responseReady(EndpointInvocationContext eic)
This will call the InvocationListener instances that were called during the request processing for this message.
-
-