Package org.apache.axis2.jaxws.server
Class EndpointController
java.lang.Object
org.apache.axis2.jaxws.server.EndpointController
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected EndpointDispatchergetEndpointDispatcher(Class serviceImplClass, Object serviceInstance) protected EndpointDispatchergetEndpointDispatcher(MessageContext mc, Class serviceImplClass, Object serviceInstance) protected booleanprotected booleanThis method is used to start the JAX-WS invocation of a target endpoint.voidvoidstatic booleanisOneWay(org.apache.axis2.context.MessageContext mc) protected voidThis method will retrieve all the InvocationListenerFactory instances and call the 'createInvocationListener' instance on each.protected voidThis will call the InvocationListener instances that were called during the request processing for this message.
-
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.AxisFaultjakarta.xml.ws.WebServiceException
-
invokeAsync
-
invokeOneWay
-
handleRequest
protected boolean handleRequest(EndpointInvocationContext eic) throws org.apache.axis2.AxisFault, jakarta.xml.ws.WebServiceException - Throws:
org.apache.axis2.AxisFaultjakarta.xml.ws.WebServiceException
-
handleResponse
-
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
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
This will call the InvocationListener instances that were called during the request processing for this message.
-