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 aBodyProcessor<byte[]> obtained fromBodyProcessor.asByteArray().static HttpResponse.BodyHandler<Void>HttpResponse.BodyHandler. asByteArrayConsumer(Consumer<Optional<byte[]>> consumer)Returns aBodyHandler<Void>that returns aBodyProcessor<Void>obtained fromBodyProcessor.asByteArrayConsumer(Consumer).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFile(Path file)Returns aBodyHandler<Path>that returns aBodyProcessor<Path>obtained fromBodyProcessor.asFile(Path).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFile(Path file, OpenOption... openOptions)Returns aBodyHandler<Path>that returns aBodyProcessor<Path>obtained fromBodyProcessor.asFile(Path,OpenOption...).static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFileDownload(Path directory, OpenOption... openOptions)Returns aBodyHandler<Path>that returns aBodyProcessor<Path> where the download directory is specified, but the filename is obtained from theContent-Dispositionresponse header.static HttpResponse.BodyHandler<String>HttpResponse.BodyHandler. asString()Returns aBodyHandler<String>that returns aBodyProcessor<String>obtained fromBodyProcessor.asString(Charset).static HttpResponse.BodyHandler<String>HttpResponse.BodyHandler. asString(Charset charset)Returns aBodyHandler<String>that returns aBodyProcessor<String>obtained fromBodyProcessor.asString(Charset).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.Methods in jdk.incubator.http that return types with arguments of type HttpResponse.BodyHandler Modifier and Type Method Description Optional<HttpResponse.BodyHandler<T>>HttpResponse.MultiProcessor. onRequest(HttpRequest request)Called for the main request and each push promise that is received.Methods in jdk.incubator.http with parameters of type HttpResponse.BodyHandler Modifier and Type Method Description 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.MultiProcessor<MultiMapResult<V>,V>HttpResponse.MultiProcessor. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler)Returns a general purpose handler for multi responses.static <V> HttpResponse.MultiProcessor<MultiMapResult<V>,V>HttpResponse.MultiProcessor. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler, boolean completion)Returns a general purpose handler for multi responses.
-