Class InvocationHelper


  • public class InvocationHelper
    extends Object
    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 Detail

      • InvocationHelper

        public InvocationHelper()
    • Method Detail

      • callListenersForException

        public static void callListenersForException​(Throwable t,
                                                     MessageContext context)
        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

        public static void callListenersForException​(Throwable t,
                                                     EndpointInvocationContext eic)
        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

        public static Throwable determineMappedException​(Throwable t,
                                                         EndpointInvocationContext eic)
        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

        public static Throwable determineMappedException​(Throwable t,
                                                         MessageContext context)
        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.