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 Details

    • EndpointController

      public EndpointController()
  • Method Details

    • invoke

      public EndpointInvocationContext invoke(EndpointInvocationContext eic) throws org.apache.axis2.AxisFault, jakarta.xml.ws.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:
      org.apache.axis2.AxisFault
      jakarta.xml.ws.WebServiceException
    • invokeAsync

      public void invokeAsync(EndpointInvocationContext eic)
    • invokeOneWay

      public void invokeOneWay(EndpointInvocationContext eic)
    • handleRequest

      protected boolean handleRequest(EndpointInvocationContext eic) throws org.apache.axis2.AxisFault, jakarta.xml.ws.WebServiceException
      Throws:
      org.apache.axis2.AxisFault
      jakarta.xml.ws.WebServiceException
    • 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(org.apache.axis2.context.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.