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