Class MSF4JClientTracingFilter

  • All Implemented Interfaces:
    javax.ws.rs.client.ClientRequestFilter, javax.ws.rs.client.ClientResponseFilter

    public class MSF4JClientTracingFilter
    extends java.lang.Object
    implements javax.ws.rs.client.ClientRequestFilter, javax.ws.rs.client.ClientResponseFilter
    Filter for tracing client side request/response flow.
    • Constructor Summary

      Constructors 
      Constructor Description
      MSF4JClientTracingFilter​(java.lang.String clientName)
      Constructor of the MSF4JClientTracingFilter.
      MSF4JClientTracingFilter​(java.lang.String clientName, java.lang.String dasUrl)
      Constructor of the MSF4JClientTracingFilter.
      MSF4JClientTracingFilter​(java.lang.String clientName, TraceEvent parentEvent, java.lang.String dasUrl)
      Constructor of the MSF4JClientTracingFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(javax.ws.rs.client.ClientRequestContext requestContext)
      Intercepts the client request flow and extract request information to be published to the DAS for tracing.
      void filter​(javax.ws.rs.client.ClientRequestContext requestContext, javax.ws.rs.client.ClientResponseContext responseContext)
      Intercepts the client response flow and extract response information to be published to the DAS server for tracing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MSF4JClientTracingFilter

        public MSF4JClientTracingFilter​(java.lang.String clientName)
        Constructor of the MSF4JClientTracingFilter.
        Parameters:
        clientName - Name of the client
      • MSF4JClientTracingFilter

        public MSF4JClientTracingFilter​(java.lang.String clientName,
                                        java.lang.String dasUrl)
        Constructor of the MSF4JClientTracingFilter.
        Parameters:
        clientName - Name of the client
        dasUrl - URL of the receiver of DAS server
      • MSF4JClientTracingFilter

        public MSF4JClientTracingFilter​(java.lang.String clientName,
                                        TraceEvent parentEvent,
                                        java.lang.String dasUrl)
        Constructor of the MSF4JClientTracingFilter.
        Parameters:
        clientName - Name of the client
        parentEvent - TraceEvent of the caller
        dasUrl - URL of the receiver of DAS server
    • Method Detail

      • filter

        public void filter​(javax.ws.rs.client.ClientRequestContext requestContext)
                    throws java.io.IOException
        Intercepts the client request flow and extract request information to be published to the DAS for tracing.
        Specified by:
        filter in interface javax.ws.rs.client.ClientRequestFilter
        Throws:
        java.io.IOException
      • filter

        public void filter​(javax.ws.rs.client.ClientRequestContext requestContext,
                           javax.ws.rs.client.ClientResponseContext responseContext)
                    throws java.io.IOException
        Intercepts the client response flow and extract response information to be published to the DAS server for tracing.
        Specified by:
        filter in interface javax.ws.rs.client.ClientResponseFilter
        Throws:
        java.io.IOException