Class HttpLogger

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class HttpLogger
    extends java.lang.Object
    implements okhttp3.Interceptor
    An okhttp Interceptor that performs custom logging of HTTP request and response messages.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface okhttp3.Interceptor

        okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
    • Field Summary

      • Fields inherited from interface okhttp3.Interceptor

        Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.ibm.cloud.sdk.core.http.HttpLogger.Level getLevel()  
      okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)  
      void setLevel​(com.ibm.cloud.sdk.core.http.HttpLogger.Level l)  
      • Methods inherited from class java.lang.Object

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

      • HttpLogger

        public HttpLogger()
    • Method Detail

      • setLevel

        public void setLevel​(com.ibm.cloud.sdk.core.http.HttpLogger.Level l)
      • getLevel

        public com.ibm.cloud.sdk.core.http.HttpLogger.Level getLevel()
      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws java.io.IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        java.io.IOException