U - the type of address before resolution (unresolved address)R - the type of address after resolution (resolved address)public class DelegatingMultiAddressHttpClientBuilder<U,R> extends Object implements MultiAddressHttpClientBuilder<U,R>
MultiAddressHttpClientBuilder that delegates all methods to another MultiAddressHttpClientBuilder.MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R>| Constructor and Description |
|---|
DelegatingMultiAddressHttpClientBuilder(MultiAddressHttpClientBuilder<U,R> delegate)
Create a new instance.
|
public DelegatingMultiAddressHttpClientBuilder(MultiAddressHttpClientBuilder<U,R> delegate)
delegate - MultiAddressHttpClientBuilder to which all methods are delegated.protected final MultiAddressHttpClientBuilder<U,R> delegate()
MultiAddressHttpClientBuilder delegate.MultiAddressHttpClientBuilder.public String toString()
toString in class Objectpublic MultiAddressHttpClientBuilder<U,R> ioExecutor(IoExecutor ioExecutor)
IoExecutor for all connections created from this builder.ioExecutor in interface MultiAddressHttpClientBuilder<U,R>ioExecutor - IoExecutor to use.this.public MultiAddressHttpClientBuilder<U,R> executor(Executor executor)
Executor for all connections created from this builder.executor in interface MultiAddressHttpClientBuilder<U,R>executor - IoExecutor to use.this.public MultiAddressHttpClientBuilder<U,R> executionStrategy(HttpExecutionStrategy strategy)
HttpExecutionStrategy for all connections created from this builder.executionStrategy in interface MultiAddressHttpClientBuilder<U,R>strategy - HttpExecutionStrategy to use.this.HttpExecutionStrategiespublic MultiAddressHttpClientBuilder<U,R> bufferAllocator(BufferAllocator allocator)
BufferAllocator for all connections created from this builder.bufferAllocator in interface MultiAddressHttpClientBuilder<U,R>allocator - BufferAllocator to use.this.public MultiAddressHttpClientBuilder<U,R> headersFactory(HttpHeadersFactory headersFactory)
MultiAddressHttpClientBuilderHttpHeadersFactory to be used for creating HttpHeaders for new requests.headersFactory in interface MultiAddressHttpClientBuilder<U,R>headersFactory - HttpHeadersFactory to be used for creating HttpHeaders for new requeststhispublic MultiAddressHttpClientBuilder<U,R> initializer(MultiAddressHttpClientBuilder.SingleAddressInitializer<U,R> initializer)
MultiAddressHttpClientBuilderStreamingHttpClient that is built.initializer in interface MultiAddressHttpClientBuilder<U,R>initializer - Initializes the SingleAddressHttpClientBuilder used to build new
StreamingHttpClients.thispublic MultiAddressHttpClientBuilder<U,R> followRedirects(RedirectConfig config)
MultiAddressHttpClientBuilderfollowRedirects in interface MultiAddressHttpClientBuilder<U,R>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.RedirectConfigBuilderpublic HttpClient build()
HttpClient.HttpClientpublic StreamingHttpClient buildStreaming()
StreamingHttpClient.StreamingHttpClientpublic BlockingHttpClient buildBlocking()
BlockingHttpClient.BlockingHttpClientpublic BlockingStreamingHttpClient buildBlockingStreaming()
BlockingStreamingHttpClient.BlockingStreamingHttpClient