Package com.helixframework.okhttp.delta
Class DeltaJsonInterceptor
java.lang.Object
com.helixframework.okhttp.delta.DeltaJsonInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that uses helix-delta to send only changed JSON content when a
previous outbound request body is available in a request-body store.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingDeltaJsonInterceptorinstances.Nested 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 TypeMethodDescriptionstatic DeltaJsonInterceptor.Builderbuilder()Creates a builder forDeltaJsonInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) static DeltaJsonInterceptorstandard()Creates an instance with the standard in-memory defaults.
-
Method Details
-
builder
Creates a builder forDeltaJsonInterceptor.- Returns:
- interceptor builder
-
standard
Creates an instance with the standard in-memory defaults.- Returns:
- a
DeltaJsonInterceptor
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-