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