Class HTTPMonitoringInterceptor

  • All Implemented Interfaces:
    org.wso2.msf4j.Interceptor, org.wso2.msf4j.interceptor.RequestInterceptor, org.wso2.msf4j.interceptor.ResponseInterceptor

    public class HTTPMonitoringInterceptor
    extends java.lang.Object
    implements org.wso2.msf4j.Interceptor
    Monitor HTTP Requests for methods with HTTPMonitored annotations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REFERER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void postCall​(org.wso2.msf4j.Request request, int status, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)  
      boolean preCall​(org.wso2.msf4j.Request request, org.wso2.msf4j.Response responder, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.wso2.msf4j.Interceptor

        interceptRequest, interceptResponse, onResponseInterceptionError
      • Methods inherited from interface org.wso2.msf4j.interceptor.RequestInterceptor

        onRequestInterceptionError
    • Constructor Detail

      • HTTPMonitoringInterceptor

        public HTTPMonitoringInterceptor()
    • Method Detail

      • preCall

        public boolean preCall​(org.wso2.msf4j.Request request,
                               org.wso2.msf4j.Response responder,
                               org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)
                        throws java.lang.Exception
        Specified by:
        preCall in interface org.wso2.msf4j.Interceptor
        Throws:
        java.lang.Exception
      • postCall

        public void postCall​(org.wso2.msf4j.Request request,
                             int status,
                             org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)
                      throws java.lang.Exception
        Specified by:
        postCall in interface org.wso2.msf4j.Interceptor
        Throws:
        java.lang.Exception