Uses of Interface
jdk.incubator.http.HttpResponse.BodyHandler
- 
Packages that use HttpResponse.BodyHandler Package Description jdk.incubator.http High level HTTP and WebSocket API - 
- 
Uses of HttpResponse.BodyHandler in jdk.incubator.http
Methods in jdk.incubator.http that return HttpResponse.BodyHandler Modifier and Type Method Description static HttpResponse.BodyHandler<byte[]>HttpResponse.BodyHandler. asByteArray()Returns aBodyHandler<byte[]>that returns aBodySubscriber<byte[]> obtained fromBodySubscriber.asByteArray().static HttpResponse.BodyHandler<Void>HttpResponse.BodyHandler. asByteArrayConsumer(Consumer<Optional<byte[]>> consumer)Returns aBodyHandler<Void>that returns aBodySubscriber<Void>obtained fromBodySubscriber.asByteArrayConsumer(Consumer).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFile(Path file)Returns aBodyHandler<Path>that returns aBodySubscriber<Path>obtained fromBodySubscriber.asFile(Path).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFile(Path file, OpenOption... openOptions)Returns aBodyHandler<Path>that returns aBodySubscriber<Path>obtained fromBodySubscriber.asFile(Path,OpenOption...).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFileDownload(Path directory, OpenOption... openOptions)Returns aBodyHandler<Path>that returns aBodySubscriber<Path> where the download directory is specified, but the filename is obtained from theContent-Dispositionresponse header.static HttpResponse.BodyHandler<InputStream>HttpResponse.BodyHandler. asInputStream()Returns aBodyHandler<InputStream>that returns aBodySubscriber<InputStream>obtained fromBodySubscriber.asInputStream.static HttpResponse.BodyHandler<String>HttpResponse.BodyHandler. asString()Returns aBodyHandler<String>that returns aBodySubscriber<String>obtained fromBodySubscriber.asString(Charset).static HttpResponse.BodyHandler<String>HttpResponse.BodyHandler. asString(Charset charset)Returns aBodyHandler<String>that returns aBodySubscriber<String>obtained fromBodySubscriber.asString(Charset).static <T> HttpResponse.BodyHandler<T>HttpResponse.BodyHandler. buffering(HttpResponse.BodyHandler<T> downstreamHandler, int bufferSize)Returns aBodyHandlerwhich, when invoked, returns a buffering BodySubscriber that buffers data before delivering it to the downstream subscriber.static <U> HttpResponse.BodyHandler<U>HttpResponse.BodyHandler. discard(U value)Returns a response body handler which discards the response body and uses the given value as a replacement for it.static HttpResponse.BodyHandler<Void>HttpResponse.BodyHandler. fromSubscriber(Flow.Subscriber<? super List<ByteBuffer>> subscriber)Returns a response body handler that returns aBodySubscriber<Void>obtained from HttpResponse.BodySubscriber.fromSubscriber(Subscriber), with the givensubscriber.static <S extends Flow.Subscriber<? super List<ByteBuffer>>,T>
HttpResponse.BodyHandler<T>HttpResponse.BodyHandler. fromSubscriber(S subscriber, Function<S,T> finisher)Returns a response body handler that returns aBodySubscriber<T>obtained fromHttpResponse.BodySubscriber.fromSubscriber(Subscriber, Function), with the givensubscriberandfinisherfunction.HttpResponse.BodyHandler<T>HttpResponse.MultiSubscriber. onRequest(HttpRequest request)Called for the main request from the user.Methods in jdk.incubator.http that return types with arguments of type HttpResponse.BodyHandler Modifier and Type Method Description Optional<HttpResponse.BodyHandler<T>>HttpResponse.MultiSubscriber. onPushPromise(HttpRequest pushPromise)Called for each push promise that is received.Methods in jdk.incubator.http with parameters of type HttpResponse.BodyHandler Modifier and Type Method Description static <T> HttpResponse.BodyHandler<T>HttpResponse.BodyHandler. buffering(HttpResponse.BodyHandler<T> downstreamHandler, int bufferSize)Returns aBodyHandlerwhich, when invoked, returns a buffering BodySubscriber that buffers data before delivering it to the downstream subscriber.abstract <T> HttpResponse<T>HttpClient. send(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)Sends the given request using this client, blocking if necessary to get the response.abstract <T> CompletableFuture<HttpResponse<T>>HttpClient. sendAsync(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)Sends the given request asynchronously using this client and the given response handler.Method parameters in jdk.incubator.http with type arguments of type HttpResponse.BodyHandler Modifier and Type Method Description static <V> HttpResponse.MultiSubscriber<MultiMapResult<V>,V>HttpResponse.MultiSubscriber. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> reqHandler)Returns a general purpose handler for multi responses.static <V> HttpResponse.MultiSubscriber<MultiMapResult<V>,V>HttpResponse.MultiSubscriber. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> reqHandler, boolean completion)Returns a general purpose handler for multi responses. 
 -