Class CorrelationServerInterceptor

java.lang.Object
org.refcodes.rest.CorrelationServerInterceptor
All Implemented Interfaces:
org.refcodes.web.HttpInterceptor<org.refcodes.web.HttpServerRequest,org.refcodes.web.HttpServerResponse>, org.refcodes.web.HttpServerInterceptor, org.refcodes.web.PostHttpInterceptor<org.refcodes.web.HttpServerRequest,org.refcodes.web.HttpServerResponse>, org.refcodes.web.PostHttpServerInterceptor, org.refcodes.web.PreHttpInterceptor<org.refcodes.web.HttpServerRequest,org.refcodes.web.HttpServerResponse>, org.refcodes.web.PreHttpServerInterceptor

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

    • CorrelationServerInterceptor

      public CorrelationServerInterceptor()
  • Method Details

    • preIntercept

      public void preIntercept(org.refcodes.web.HttpServerRequest aRequest, org.refcodes.web.HttpServerResponse aResponse)
      Specified by:
      preIntercept in interface org.refcodes.web.PreHttpInterceptor<org.refcodes.web.HttpServerRequest,org.refcodes.web.HttpServerResponse>
      Specified by:
      preIntercept in interface org.refcodes.web.PreHttpServerInterceptor
    • postIntercept

      public void postIntercept(org.refcodes.web.HttpServerRequest aRequest, org.refcodes.web.HttpServerResponse aResponse)
      Specified by:
      postIntercept in interface org.refcodes.web.PostHttpInterceptor<org.refcodes.web.HttpServerRequest,org.refcodes.web.HttpServerResponse>
      Specified by:
      postIntercept in interface org.refcodes.web.PostHttpServerInterceptor