Class SharingAuthCache
java.lang.Object
org.eclipse.aether.transport.http.SharingAuthCache
- All Implemented Interfaces:
org.apache.http.client.AuthCache
Auth scheme cache that upon clearing releases all cached schemes into a pool for future reuse by other requests,
thereby reducing challenge-response roundtrips.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<org.apache.http.HttpHost, org.apache.http.auth.AuthScheme> private final LocalState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.apache.http.auth.AuthSchemeget(org.apache.http.HttpHost host) voidput(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme) voidremove(org.apache.http.HttpHost host) private voidshare()private static org.apache.http.HttpHosttoKey(org.apache.http.HttpHost host) toString()
-
Field Details
-
state
-
authSchemes
-
-
Constructor Details
-
SharingAuthCache
SharingAuthCache(LocalState state)
-
-
Method Details
-
toKey
private static org.apache.http.HttpHost toKey(org.apache.http.HttpHost host) -
get
public org.apache.http.auth.AuthScheme get(org.apache.http.HttpHost host) - Specified by:
getin interfaceorg.apache.http.client.AuthCache
-
put
public void put(org.apache.http.HttpHost host, org.apache.http.auth.AuthScheme authScheme) - Specified by:
putin interfaceorg.apache.http.client.AuthCache
-
remove
public void remove(org.apache.http.HttpHost host) - Specified by:
removein interfaceorg.apache.http.client.AuthCache
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.http.client.AuthCache
-
toString
-