Package com.auth0.net
Class TelemetryInterceptor
java.lang.Object
com.auth0.net.TelemetryInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp Interceptor implementation that adds the auth0-client header
to every request made by this SDK.
- See Also:
-
Interceptor
-
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 -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) booleanvoidsetEnabled(boolean enabled) voidsetTelemetry(Telemetry telemetry)
-
Constructor Details
-
TelemetryInterceptor
public TelemetryInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
setTelemetry
-
getTelemetry
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled()
-