T
- The HttpClientContext type or subtype.public abstract class AbstractClientContextBuilder<T extends HttpClientContext> extends Object
HttpClientContext
builder.Modifier | Constructor and Description |
---|---|
protected |
AbstractClientContextBuilder(SchemePortResolver schemePortResolver) |
Modifier and Type | Method and Description |
---|---|
T |
build() |
protected abstract T |
createContext() |
AbstractClientContextBuilder<T> |
preemptiveAuth(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
AbstractClientContextBuilder<T> |
preemptiveBasicAuth(org.apache.hc.core5.http.HttpHost host,
UsernamePasswordCredentials credentials) |
AbstractClientContextBuilder<T> |
useAuthCache(AuthCache authCache) |
AbstractClientContextBuilder<T> |
useAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry) |
AbstractClientContextBuilder<T> |
useCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry) |
AbstractClientContextBuilder<T> |
useCookieStore(CookieStore cookieStore) |
AbstractClientContextBuilder<T> |
useCredentialsProvider(CredentialsProvider credentialsProvider) |
protected AbstractClientContextBuilder(SchemePortResolver schemePortResolver)
public AbstractClientContextBuilder<T> useCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry)
public AbstractClientContextBuilder<T> useAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry)
public AbstractClientContextBuilder<T> useCookieStore(CookieStore cookieStore)
public AbstractClientContextBuilder<T> useCredentialsProvider(CredentialsProvider credentialsProvider)
public AbstractClientContextBuilder<T> useAuthCache(AuthCache authCache)
public AbstractClientContextBuilder<T> preemptiveAuth(org.apache.hc.core5.http.HttpHost host, AuthScheme authScheme)
public AbstractClientContextBuilder<T> preemptiveBasicAuth(org.apache.hc.core5.http.HttpHost host, UsernamePasswordCredentials credentials)
protected abstract T createContext()
public T build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.