Class CorrelationClientInterceptor

java.lang.Object
org.refcodes.rest.CorrelationClientInterceptor
All Implemented Interfaces:
org.refcodes.web.HttpClientInterceptor, org.refcodes.web.HttpInterceptor<org.refcodes.web.HttpClientRequest,org.refcodes.web.HttpClientResponse>, org.refcodes.web.PostHttpClientInterceptor, org.refcodes.web.PostHttpInterceptor<org.refcodes.web.HttpClientRequest,org.refcodes.web.HttpClientResponse>, org.refcodes.web.PreHttpClientInterceptor, org.refcodes.web.PreHttpInterceptor<org.refcodes.web.HttpClientRequest,org.refcodes.web.HttpClientResponse>

public class CorrelationClientInterceptor extends Object implements org.refcodes.web.HttpClientInterceptor
The CorrelationClientInterceptor manages (adds) correlation IDs for request and session.
  • Constructor Details

    • CorrelationClientInterceptor

      public CorrelationClientInterceptor()
  • Method Details

    • preIntercept

      public void preIntercept(org.refcodes.web.HttpClientRequest aRequest, org.refcodes.web.HttpClientResponse aResponse)
      Specified by:
      preIntercept in interface org.refcodes.web.PreHttpClientInterceptor
      Specified by:
      preIntercept in interface org.refcodes.web.PreHttpInterceptor<org.refcodes.web.HttpClientRequest,org.refcodes.web.HttpClientResponse>
    • postIntercept

      public void postIntercept(org.refcodes.web.HttpClientRequest aRequest, org.refcodes.web.HttpClientResponse aResponse)
      Specified by:
      postIntercept in interface org.refcodes.web.PostHttpClientInterceptor
      Specified by:
      postIntercept in interface org.refcodes.web.PostHttpInterceptor<org.refcodes.web.HttpClientRequest,org.refcodes.web.HttpClientResponse>