Class CorrelationInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public class CorrelationInterceptor
     implements Interceptor
                        

    This interceptor adds a X-SAP-CorrelationID header to each request. The value will be a unique identifier. The correlation ID will also be present in logs related to the request/response.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Interceptor.Companion Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Response intercept(@NonNull() Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CorrelationInterceptor

        CorrelationInterceptor()
    • Method Detail

      • intercept

        @NonNull() Response intercept(@NonNull() Interceptor.Chain chain)