Uses of Interface
com.github.mizosoft.methanol.Methanol.Interceptor.Chain
-
Packages that use Methanol.Interceptor.Chain Package Description com.github.mizosoft.methanol com.github.mizosoft.methanol.internal.cache com.github.mizosoft.methanol.internal.extensions -
-
Uses of Methanol.Interceptor.Chain in com.github.mizosoft.methanol
Methods in com.github.mizosoft.methanol that return Methanol.Interceptor.Chain Modifier and Type Method Description default <U> Methanol.Interceptor.Chain<U>Methanol.Interceptor.Chain. with(java.net.http.HttpResponse.BodyHandler<U> bodyHandler, @Nullable java.net.http.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(java.util.function.UnaryOperator<java.net.http.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(java.util.function.UnaryOperator<java.net.http.HttpResponse.BodyHandler<T>> bodyHandlerTransformer, java.util.function.UnaryOperator<java.net.http.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<T>Methanol.Interceptor.Chain. withBodyHandler(java.net.http.HttpResponse.BodyHandler<T> bodyHandler)Returns a new chain that uses the givenBodyHandler.Methanol.Interceptor.Chain<T>Methanol.Interceptor.Chain. withPushPromiseHandler(@Nullable java.net.http.HttpResponse.PushPromiseHandler<T> pushPromiseHandler)Returns a new chain that uses the givenPushPromiseHandler.Methods in com.github.mizosoft.methanol with parameters of type Methanol.Interceptor.Chain Modifier and Type Method Description <T> java.net.http.HttpResponse<T>Methanol.Interceptor. intercept(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)Intercepts given request and returns the resulting response, usually by forwarding to the given chain.<T> java.net.http.HttpResponse<T>RetryInterceptor. intercept(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)<T> java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>>Methanol.Interceptor. interceptAsync(java.net.http.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> java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>>RetryInterceptor. interceptAsync(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)Method parameters in com.github.mizosoft.methanol with type arguments of type Methanol.Interceptor.Chain Modifier and Type Method Description RetryInterceptorRetryInterceptor.Builder. build(java.util.function.BiPredicate<java.net.http.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.Chain Modifier and Type Method Description <T> java.net.http.HttpResponse<T>CacheInterceptor. intercept(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)<T> java.net.http.HttpResponse<T>RedirectingInterceptor. intercept(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)<T> java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>>CacheInterceptor. interceptAsync(java.net.http.HttpRequest request, Methanol.Interceptor.Chain<T> chain)<T> java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>>RedirectingInterceptor. interceptAsync(java.net.http.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.Chain Modifier and Type Method Description static <T> Methanol.Interceptor.Chain<java.util.concurrent.Flow.Publisher<java.util.List<java.nio.ByteBuffer>>>Handlers. toPublisherChain(Methanol.Interceptor.Chain<T> chain, java.util.concurrent.Executor executor)Methods in com.github.mizosoft.methanol.internal.extensions with parameters of type Methanol.Interceptor.Chain Modifier and Type Method Description static <T> Methanol.Interceptor.Chain<java.util.concurrent.Flow.Publisher<java.util.List<java.nio.ByteBuffer>>>Handlers. toPublisherChain(Methanol.Interceptor.Chain<T> chain, java.util.concurrent.Executor executor)
-