public class HTTPCachingProvider
extends java.lang.Object
implements org.apache.http.client.CredentialsProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPCachingProvider.Auth |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.List<HTTPCachingProvider.Auth> |
cache |
static java.lang.String |
PROXY_AUTH_RESP |
protected HTTPAuthStore |
store |
static boolean |
TESTING |
protected static java.util.List<HTTPCachingProvider.Auth> |
testlist |
static java.lang.String |
WWW_AUTH_RESP |
| Constructor and Description |
|---|
HTTPCachingProvider(HTTPAuthStore store) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.http.auth.Credentials |
cacheCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
Insert a credentials into the cache; will return
any previous value.
|
protected static org.apache.http.auth.Credentials |
checkCache(org.apache.http.auth.AuthScope scope)
Retrieve a credentials from the cache.
|
void |
clear() |
static void |
clearCache() |
static java.util.List<HTTPCachingProvider.Auth> |
getCache() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
static java.util.List<HTTPCachingProvider.Auth> |
getTestList() |
static void |
invalidate(org.apache.http.auth.AuthScope scope)
Clear some entries matching the argument
|
void |
setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds) |
java.lang.String |
toString() |
public static final java.lang.String WWW_AUTH_RESP
public static final java.lang.String PROXY_AUTH_RESP
public static boolean TESTING
protected HTTPAuthStore store
protected static java.util.List<HTTPCachingProvider.Auth> cache
protected static java.util.List<HTTPCachingProvider.Auth> testlist
public HTTPCachingProvider(HTTPAuthStore store)
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
getCredentials in interface org.apache.http.client.CredentialsProviderpublic void setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
setCredentials in interface org.apache.http.client.CredentialsProviderpublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic java.lang.String toString()
toString in class java.lang.Objectprotected static org.apache.http.auth.Credentials cacheCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
scope - the key for retrieving a credentials object.creds - the credentials object associated with this keyprotected static org.apache.http.auth.Credentials checkCache(org.apache.http.auth.AuthScope scope)
scope - a key for retrieving a credentials object.public static void invalidate(org.apache.http.auth.AuthScope scope)
public static void clearCache()
public static java.util.List<HTTPCachingProvider.Auth> getCache()
public static java.util.List<HTTPCachingProvider.Auth> getTestList()