Package com.auth0.net

Class TelemetryInterceptor

java.lang.Object
com.auth0.net.TelemetryInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class TelemetryInterceptor extends Object implements okhttp3.Interceptor
OkHttp Interceptor implementation that adds the auth0-client header to every request made by this SDK.
See Also:
  • Interceptor
  • Constructor Details

    • TelemetryInterceptor

      public TelemetryInterceptor()
  • Method Details

    • intercept

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

      public void setTelemetry(Telemetry telemetry)
    • getTelemetry

      public Telemetry getTelemetry()
    • setEnabled

      public void setEnabled(boolean enabled)
    • isEnabled

      public boolean isEnabled()