Class LoggingInterceptor

java.lang.Object
com.studerw.tda.http.LoggingInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class LoggingInterceptor extends Object implements okhttp3.Interceptor
This class will log all HTTP activity to the logname passed in the constructor. This is currently set as TDA_HTTP.
  • Constructor Details

    • LoggingInterceptor

      public LoggingInterceptor(String logName)
    • LoggingInterceptor

      public LoggingInterceptor(String logName, int byteCount)
  • Method Details

    • intercept

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