HttpResponse.BodySubscriber<T> |
HttpResponse.BodyHandler.apply(HttpResponse.ResponseInfo responseInfo) |
|
static <T> HttpResponse.BodySubscriber<T> |
HttpResponse.BodySubscribers.buffering(HttpResponse.BodySubscriber<T> downstream, int bufferSize) |
指定されたダウンストリーム・サブスクライバにデータを配信する前にデータをバッファするBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscribers.discarding() |
レスポンス本文を破棄するレスポンス・サブスクライバを返します。
|
static HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscribers.fromLineSubscriber(Flow.Subscriber<? super String> subscriber) |
指定されたFlow.Subscriberの行ごとにすべてのレスポンス本文を転送する本体サブスクライバを返します。
|
static <S extends Flow.Subscriber<? super String>,T> HttpResponse.BodySubscriber<T> |
HttpResponse.BodySubscribers.fromLineSubscriber(S subscriber, Function<? super S,? extends T> finisher, Charset charset, String lineSeparator) |
指定されたFlow.Subscriberの行ごとにすべてのレスポンス本文を転送する本体サブスクライバを返します。
|
static HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscribers.fromSubscriber(Flow.Subscriber<? super List<ByteBuffer>> subscriber) |
指定されたFlow.Subscriberにすべてのレスポンス本文を転送する本文サブスクライバを返します。
|
static <S extends Flow.Subscriber<? super List<ByteBuffer>>,T> HttpResponse.BodySubscriber<T> |
HttpResponse.BodySubscribers.fromSubscriber(S subscriber, Function<? super S,? extends T> finisher) |
指定されたFlow.Subscriberにすべてのレスポンス本文を転送する本文サブスクライバを返します。
|
static <T,U> HttpResponse.BodySubscriber<U> |
HttpResponse.BodySubscribers.mapping(HttpResponse.BodySubscriber<T> upstream, Function<? super T,? extends U> mapper) |
指定されたupstream BodySubscriberの本体オブジェクトに指定された関数を適用した結果がレスポンス本文の値であるBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<byte[]> |
HttpResponse.BodySubscribers.ofByteArray() |
レスポンス本文をバイト配列として格納するBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscribers.ofByteArrayConsumer(Consumer<Optional<byte[]>> consumer) |
Optional<byte[]>の指定されたコンシューマに受信ボディ・データを提供するBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<Path> |
HttpResponse.BodySubscribers.ofFile(Path file) |
指定された名前で開かれたファイルにレスポンス本文を格納するBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<Path> |
HttpResponse.BodySubscribers.ofFile(Path file, OpenOption... openOptions) |
指定されたオプションおよび名前で開かれたファイルにレスポンス本文を格納するBodySubscriberを返します。
|
static HttpResponse.BodySubscriber<InputStream> |
HttpResponse.BodySubscribers.ofInputStream() |
|
static HttpResponse.BodySubscriber<Stream<String>> |
HttpResponse.BodySubscribers.ofLines(Charset charset) |
|
static HttpResponse.BodySubscriber<Flow.Publisher<List<ByteBuffer>>> |
HttpResponse.BodySubscribers.ofPublisher() |
Publisher<List<ByteBuffer>>を介してレスポンス本文をパブリッシュするレスポンス・サブスクライバを返します。
|
static HttpResponse.BodySubscriber<String> |
HttpResponse.BodySubscribers.ofString(Charset charset) |
指定されたCharsetを使用して変換された Stringとしてレスポンス本文を格納する本文サブスクライバを返します。
|
static <U> HttpResponse.BodySubscriber<U> |
HttpResponse.BodySubscribers.replacing(U value) |
レスポンス本文を破棄するレスポンス・サブスクライバを返します。
|