U - the type of address before resolution (unresolved address)R - the type of address after resolution (resolved address)public interface MultiAddressHttpClientBuilder<U,R>
StreamingHttpClient instances which have a capacity to call any server based on the parsed
absolute-form URL address information from each StreamingHttpRequest.
It also provides a good set of default settings and configurations, which could be used by most users as-is or could be overridden to address specific use cases.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R>
Initializes the
SingleAddressHttpClientBuilder for each new client. |
MultiAddressHttpClientBuilder<U,R> ioExecutor(IoExecutor ioExecutor)
IoExecutor for all connections created from this builder.ioExecutor - IoExecutor to use.this.MultiAddressHttpClientBuilder<U,R> executor(Executor executor)
Executor for all connections created from this builder.executor - IoExecutor to use.this.MultiAddressHttpClientBuilder<U,R> executionStrategy(HttpExecutionStrategy strategy)
HttpExecutionStrategy for all connections created from this builder.strategy - HttpExecutionStrategy to use.this.HttpExecutionStrategiesMultiAddressHttpClientBuilder<U,R> bufferAllocator(BufferAllocator allocator)
BufferAllocator for all connections created from this builder.allocator - BufferAllocator to use.this.default MultiAddressHttpClientBuilder<U,R> headersFactory(HttpHeadersFactory headersFactory)
HttpHeadersFactory to be used for creating HttpHeaders for new requests.headersFactory - HttpHeadersFactory to be used for creating HttpHeaders for new requeststhisMultiAddressHttpClientBuilder<U,R> initializer(MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R> initializer)
StreamingHttpClient that is built.initializer - Initializes the SingleAddressHttpClientBuilder used to build new
StreamingHttpClients.thisMultiAddressHttpClientBuilder<U,R> followRedirects(RedirectConfig config)
config - RedirectConfig to configure redirection behavior. It can be used to tune what requests
should follow redirects and which parts of the original request (headers/payload body/trailers) should be
redirected to non-relative locations.this.RedirectConfigBuilderStreamingHttpClient buildStreaming()
StreamingHttpClient.StreamingHttpClientIllegalArgumentException - for incomplete or illegal configurationsIllegalStateException - for unsupported configuration combinationsdefault HttpClient build()
HttpClient.HttpClientdefault BlockingStreamingHttpClient buildBlockingStreaming()
BlockingStreamingHttpClient.BlockingStreamingHttpClientdefault BlockingHttpClient buildBlocking()
BlockingHttpClient.BlockingHttpClient