Interface RequestInterceptor

All Superinterfaces:
Comparable<RequestInterceptor>, JolokiaService<RequestInterceptor>

public interface RequestInterceptor extends JolokiaService<RequestInterceptor>
Interface describing an interceptor wrapping around a request processing. As input it gets the original JolokiaRequest and the original JSONObject response sent back to the client. The interceptor might add to the return value any extra information to be sent to the client.
Since:
09.09.13
Author:
roland
  • Method Details

    • intercept

      void intercept(JolokiaRequest pRequest, org.json.simple.JSONObject pRetValue)
      Log the call to the given request. For bulk requests, this method is called multiple times, once for each included request.
      Parameters:
      pRequest - request received
      pRetValue - the value to be returned.