Package org.apache.axis2.jaxws.server
Class InvocationHelper
java.lang.Object
org.apache.axis2.jaxws.server.InvocationHelper
This class represents static methods that are utilized during the course
of invocation of a JAX-WS endpoint. This utility class is specifically
meant to be used within the JAX-WS server-side flow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcallListenersForException(Throwable t, MessageContext context) This method is responsible for driving the method below.static voidThis method is responsible for driving the InvocationListener instances' 'notifyOnException' method.static ThrowabledetermineMappedException(Throwable t, MessageContext context) This method will drive the call to the above methods.static ThrowableThis method will drive the call to the above methods.
-
Constructor Details
-
InvocationHelper
public InvocationHelper()
-
-
Method Details
-
callListenersForException
This method is responsible for driving the method below. It will appropriately wrap the MessageContext in an EndpointInvocationContext. The MessageContext instance MUST be a request MessageContext. -
callListenersForException
This method is responsible for driving the InvocationListener instances' 'notifyOnException' method. This method will be called anytime that an exception occurs within the JAX-WS server side code flow. -
determineMappedException
This method will drive the call to the above methods. It will drive the call to the 'notifyOnException' methods of all InvocationListeners. After doing this, it will determine if another exception has been set as the mapped exception, and if so it will return this exception. Otherwise, null is returned. -
determineMappedException
This method will drive the call to the above methods. It will drive the call to the 'notifyOnException' methods of all InvocationListeners. After doing this, it will determine if another exception has been set as the mapped exception, and if so it will return this exception. Otherwise, null is returned.
-