Class HelixMetadataInterceptor
java.lang.Object
com.helixframework.okhttp.metadata.HelixMetadataInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that sets the `X-Metadata` header on downstream requests with values found in the helix context.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forHelixMetadataInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) static HelixMetadataInterceptorstandard()Creates an instance ofHelixMetadataInterceptorwith the standard default configuration.
-
Method Details
-
builder
Creates a builder forHelixMetadataInterceptor.- Returns:
- a
HelixMetadataInterceptor.Builder
-
standard
Creates an instance ofHelixMetadataInterceptorwith the standard default configuration.- Returns:
- a
HelixMetadataInterceptor
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-