Uses of Interface
com.github.mizosoft.methanol.Methanol.Interceptor.Chain
Packages that use Methanol.Interceptor.Chain
Package
Description
-
Uses of Methanol.Interceptor.Chain in com.github.mizosoft.methanol
Methods in com.github.mizosoft.methanol that return Methanol.Interceptor.ChainModifier and TypeMethodDescriptiondefault <U> Methanol.Interceptor.Chain<U> Methanol.Interceptor.Chain.with(HttpResponse.BodyHandler<U> bodyHandler, @Nullable HttpResponse.PushPromiseHandler<U> pushPromiseHandler) Returns a new chain that uses given handlers, possibly targeting another response type.default Methanol.Interceptor.Chain<T> Methanol.Interceptor.Chain.with(UnaryOperator<HttpResponse.BodyHandler<T>> bodyHandlerTransformer) Returns a new chain after applying the given function to this chain's body handler.default Methanol.Interceptor.Chain<T> Methanol.Interceptor.Chain.with(UnaryOperator<HttpResponse.BodyHandler<T>> bodyHandlerTransformer, UnaryOperator<HttpResponse.PushPromiseHandler<T>> pushPromiseHandlerTransformer) Returns a new chain after applying the given functions to this chain's body and push promise handlers, and only to the latter if a push promise handler is present.Methanol.Interceptor.Chain.withBodyHandler(HttpResponse.BodyHandler<T> bodyHandler) Returns a new chain that uses the givenBodyHandler.Methanol.Interceptor.Chain.withPushPromiseHandler(@Nullable HttpResponse.PushPromiseHandler<T> pushPromiseHandler) Returns a new chain that uses the givenPushPromiseHandler.Methods in com.github.mizosoft.methanol with parameters of type Methanol.Interceptor.ChainModifier and TypeMethodDescription<T> HttpResponse<T> Methanol.Interceptor.intercept(HttpRequest request, Methanol.Interceptor.Chain<T> chain) Intercepts given request and returns the resulting response, usually by forwarding to the given chain.<T> HttpResponse<T> RetryInterceptor.intercept(HttpRequest request, Methanol.Interceptor.Chain<T> chain) <T> CompletableFuture<HttpResponse<T>> Methanol.Interceptor.interceptAsync(HttpRequest request, Methanol.Interceptor.Chain<T> chain) Intercepts the given request and returns aCompletableFuturefor the resulting response, usually by forwarding to the given chain.<T> CompletableFuture<HttpResponse<T>> RetryInterceptor.interceptAsync(HttpRequest request, Methanol.Interceptor.Chain<T> chain) Method parameters in com.github.mizosoft.methanol with type arguments of type Methanol.Interceptor.ChainModifier and TypeMethodDescriptionRetryInterceptor.Builder.build(BiPredicate<HttpRequest, Methanol.Interceptor.Chain<?>> selector) Builds a newRetryInterceptorthat only retries requests matched by the given predicate based on the conditions specified so far. -
Uses of Methanol.Interceptor.Chain in com.github.mizosoft.methanol.internal.cache
Methods in com.github.mizosoft.methanol.internal.cache with parameters of type Methanol.Interceptor.ChainModifier and TypeMethodDescription<T> HttpResponse<T> CacheInterceptor.intercept(HttpRequest request, Methanol.Interceptor.Chain<T> chain) <T> HttpResponse<T> RedirectingInterceptor.intercept(HttpRequest request, Methanol.Interceptor.Chain<T> chain) <T> CompletableFuture<HttpResponse<T>> CacheInterceptor.interceptAsync(HttpRequest request, Methanol.Interceptor.Chain<T> chain) <T> CompletableFuture<HttpResponse<T>> RedirectingInterceptor.interceptAsync(HttpRequest request, Methanol.Interceptor.Chain<T> chain) -
Uses of Methanol.Interceptor.Chain in com.github.mizosoft.methanol.internal.extensions
Methods in com.github.mizosoft.methanol.internal.extensions that return Methanol.Interceptor.ChainModifier and TypeMethodDescriptionstatic <T> Methanol.Interceptor.Chain<Flow.Publisher<List<ByteBuffer>>> Handlers.toPublisherChain(Methanol.Interceptor.Chain<T> chain, Executor executor) Methods in com.github.mizosoft.methanol.internal.extensions with parameters of type Methanol.Interceptor.ChainModifier and TypeMethodDescriptionstatic <T> Methanol.Interceptor.Chain<Flow.Publisher<List<ByteBuffer>>> Handlers.toPublisherChain(Methanol.Interceptor.Chain<T> chain, Executor executor)