org.apache.axis2.jaxws.server
Class EndpointController

java.lang.Object
  extended by org.apache.axis2.jaxws.server.EndpointController

public class EndpointController
extends java.lang.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
EndpointController()
           
 
Method Summary
protected  EndpointDispatcher getEndpointDispatcher(java.lang.Class serviceImplClass, java.lang.Object serviceInstance)
           
protected  EndpointDispatcher getEndpointDispatcher(MessageContext mc, java.lang.Class serviceImplClass, java.lang.Object serviceInstance)
           
protected  boolean handleRequest(EndpointInvocationContext eic)
           
protected  boolean handleResponse(EndpointInvocationContext eic)
           
 EndpointInvocationContext invoke(EndpointInvocationContext eic)
          This method is used to start the JAX-WS invocation of a target endpoint.
 void invokeAsync(EndpointInvocationContext eic)
           
 void invokeOneWay(EndpointInvocationContext eic)
           
static boolean isOneWay(MessageContext mc)
           
protected  void requestReceived(EndpointInvocationContext eic)
          This method will retrieve all the InvocationListenerFactory instances and call the 'createInvocationListener' instance on each.
protected  void responseReady(EndpointInvocationContext eic)
          This will call the InvocationListener instances that were called during the request processing for this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointController

public EndpointController()
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:
AxisFault
WebServiceException

invokeAsync

public void invokeAsync(EndpointInvocationContext eic)

invokeOneWay

public void invokeOneWay(EndpointInvocationContext eic)

handleRequest

protected boolean handleRequest(EndpointInvocationContext eic)
                         throws AxisFault,
                                WebServiceException
Throws:
AxisFault
WebServiceException

handleResponse

protected boolean handleResponse(EndpointInvocationContext eic)

getEndpointDispatcher

protected EndpointDispatcher getEndpointDispatcher(java.lang.Class serviceImplClass,
                                                   java.lang.Object serviceInstance)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getEndpointDispatcher

protected EndpointDispatcher getEndpointDispatcher(MessageContext mc,
                                                   java.lang.Class serviceImplClass,
                                                   java.lang.Object serviceInstance)
                                            throws java.lang.Exception
Throws:
java.lang.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.



Copyright © 2007 Apache Web Services Project. All Rights Reserved.