Class WebServiceEngineImpl

  • All Implemented Interfaces:
    WebServiceEngine

    public final class WebServiceEngineImpl
    extends Object
    implements WebServiceEngine
    This class acts as a factory to create TracingSystemHandler instances. It also provides an API to register listeners of SOAP messages.

    NOT THREAD SAFE: mutable instance variable: globalMessageListener

    Author:
    Jerome Dochez
    • Field Detail

      • sLogger

        public static final Logger sLogger
    • Method Detail

      • getEndpoint

        public Endpoint getEndpoint​(String uri)
        Specified by:
        getEndpoint in interface WebServiceEngine
        Parameters:
        uri - the endpoint selector
        Returns:
        an Endpoint instance if the supplied selector is the endpoint's invocation selector. In case of HTTP based web services, the selector is the endpoint URL
      • setGlobalMessageListener

        public void setGlobalMessageListener​(GlobalMessageListener listener)
        Description copied from interface: WebServiceEngine
        Set the unique global listener interface to trace all web service requests or responses. Set to null if no tracing is needed
        Specified by:
        setGlobalMessageListener in interface WebServiceEngine
        Parameters:
        listener - to register
      • hasGlobalMessageListener

        public boolean hasGlobalMessageListener()
      • preProcessRequest

        public String preProcessRequest​(Endpoint endpoint)
        Callback when a web service request entered the web service container before any processing is done.
        Parameters:
        endpoint - the Endpoint
        Returns:
        a message ID to trace the request in the subsequent callbacks
      • processRequest

        public void processRequest​(String messageID,
                                   SOAPMessageContext context,
                                   TransportInfo info)
        Callback when a 2.0 web service request is received on the endpoint.
        Parameters:
        messageID - returned by preProcessRequest call
        context - the jaxws message trace, transport dependent.
        info - the transport info
      • processResponse

        public void processResponse​(String messageID,
                                    SOAPMessageContext context)
        Callback when a 2.0 web service response is received on the endpoint.
        Parameters:
        messageID - returned by the preProcessRequest call
        context - jaxws message context
      • postProcessResponse

        public void postProcessResponse​(String messageID,
                                        TransportInfo info)
        Callback when a web service response has finished being processed by the container and was sent back to the client
        Parameters:
        messageID - returned by the preProcessRequest call
        info -