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.Response
intercept
(okhttp3.Interceptor.Chain chain) boolean
void
setEnabled
(boolean enabled) void
setTelemetry
(Telemetry telemetry)
-
Constructor Details
-
TelemetryInterceptor
public TelemetryInterceptor()
-
-
Method Details
-
intercept
- Specified by:
intercept
in interfaceokhttp3.Interceptor
- Throws:
IOException
-
setTelemetry
-
getTelemetry
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled()
-