Class HttpClientTimingAspect

java.lang.Object
org.cruk.clarity.api.debugging.HttpClientTimingAspect

public class HttpClientTimingAspect extends Object
Testing aspect that reports on the calls being made by the HTTP client talking to the Clarity API. Reports on the URI being called and the time the call took to execute.
  • Constructor Details

    • HttpClientTimingAspect

      public HttpClientTimingAspect()
  • Method Details

    • timeCall

      public Object timeCall(ProceedingJoinPoint pjp) throws Throwable
      Join point that, if the logging is set to DEBUG, will report on the call made with the HttpClient and the time taken to get a response.
      Parameters:
      pjp - The AspectJ join point object. One of the arguments in this object must be the HttpMethod being invoked.
      Returns:
      The result of proceeding with the join point.
      Throws:
      Throwable - if there is any failure.
      See Also: