public class RequesterBootstrap extends Object
HttpRequester
bootstrap.public static RequesterBootstrap bootstrap()
public final RequesterBootstrap setHttpProcessor(HttpProcessor httpProcessor)
HttpProcessor
instance.public final RequesterBootstrap setHttp1Config(Http1Config http1Config)
public final RequesterBootstrap setConnectionReuseStrategy(ConnectionReuseStrategy connStrategy)
ConnectionReuseStrategy
instance.public final RequesterBootstrap setSocketConfig(SocketConfig socketConfig)
public final RequesterBootstrap setConnectionFactory(HttpConnectionFactory<? extends HttpClientConnection> connectFactory)
public final RequesterBootstrap setSslContext(SSLContext sslContext)
public final RequesterBootstrap setSslSocketFactory(SSLSocketFactory sslSocketFactory)
public final RequesterBootstrap setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)
Callback
for SSLParameters
.public final RequesterBootstrap setSslSessionVerifier(SSLSessionVerifier sslSessionVerifier)
SSLSessionVerifier
instance.public final RequesterBootstrap setDefaultMaxPerRoute(int defaultMaxPerRoute)
public final RequesterBootstrap setMaxTotal(int maxTotal)
public final RequesterBootstrap setTimeToLive(Timeout timeToLive)
public final RequesterBootstrap setPoolReusePolicy(PoolReusePolicy poolReusePolicy)
@Experimental public final RequesterBootstrap setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)
public final RequesterBootstrap setStreamListener(Http1StreamListener streamListener)
public final RequesterBootstrap setConnPoolListener(ConnPoolListener<HttpHost> connPoolListener)
public HttpRequester create()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.