public class FiberHttpClientBuilder extends Object
Builder for creating fiber blocking httpClient. The configuration properties are the same as those of HttpAsyncClientBuilder
HttpAsyncClientBuilder
Modifier | Constructor and Description |
---|---|
protected |
FiberHttpClientBuilder(HttpAsyncClientBuilder builder) |
protected FiberHttpClientBuilder(HttpAsyncClientBuilder builder)
public static FiberHttpClientBuilder create()
Creates Builder with one io thread.
public static FiberHttpClientBuilder create(int ioThreadCount)
ioThreadCount
- public final FiberHttpClientBuilder setConnectionManager(NHttpClientConnectionManager connManager)
public final FiberHttpClientBuilder setIOReactor(org.apache.http.nio.reactor.IOReactor ioreactor)
public final FiberHttpClientBuilder setSchemePortResolver(SchemePortResolver schemePortResolver)
public final FiberHttpClientBuilder setMaxConnTotal(int maxConnTotal)
public final FiberHttpClientBuilder setMaxConnPerRoute(int maxConnPerRoute)
public final FiberHttpClientBuilder setConnectionReuseStrategy(ConnectionReuseStrategy reuseStrategy)
public final FiberHttpClientBuilder setKeepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy)
public final FiberHttpClientBuilder setUserTokenHandler(UserTokenHandler userTokenHandler)
public final FiberHttpClientBuilder setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
public final FiberHttpClientBuilder setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
public final FiberHttpClientBuilder setHttpProcessor(HttpProcessor httpprocessor)
public final FiberHttpClientBuilder addInterceptorFirst(HttpResponseInterceptor itcp)
public final FiberHttpClientBuilder addInterceptorLast(HttpResponseInterceptor itcp)
public final FiberHttpClientBuilder addInterceptorFirst(HttpRequestInterceptor itcp)
public final FiberHttpClientBuilder addInterceptorLast(HttpRequestInterceptor itcp)
public final FiberHttpClientBuilder setRoutePlanner(HttpRoutePlanner routePlanner)
public final FiberHttpClientBuilder setRedirectStrategy(RedirectStrategy redirectStrategy)
public final FiberHttpClientBuilder setDefaultCookieStore(CookieStore cookieStore)
public final FiberHttpClientBuilder setDefaultCredentialsProvider(CredentialsProvider credentialsProvider)
public final FiberHttpClientBuilder setDefaultAuthSchemeRegistry(Lookup<AuthSchemeProvider> authSchemeRegistry)
public final FiberHttpClientBuilder setDefaultCookieSpecRegistry(Lookup<CookieSpecProvider> cookieSpecRegistry)
public final FiberHttpClientBuilder setUserAgent(String userAgent)
public final FiberHttpClientBuilder setProxy(HttpHost proxy)
public final FiberHttpClientBuilder setSSLStrategy(SchemeIOSessionStrategy strategy)
public final FiberHttpClientBuilder setSSLContext(SSLContext sslcontext)
public final FiberHttpClientBuilder setHostnameVerifier(X509HostnameVerifier hostnameVerifier)
public final FiberHttpClientBuilder setDefaultHeaders(Collection<? extends Header> defaultHeaders)
public final FiberHttpClientBuilder setDefaultConnectionConfig(ConnectionConfig config)
public final FiberHttpClientBuilder setDefaultRequestConfig(RequestConfig config)
public final FiberHttpClientBuilder disableConnectionState()
public final FiberHttpClientBuilder disableCookieManagement()
public final FiberHttpClientBuilder disableAuthCaching()
public final FiberHttpClientBuilder useSystemProperties()
public FiberHttpClient build()