Class GlobalState
java.lang.Object
org.eclipse.aether.transport.http.GlobalState
- All Implemented Interfaces:
Closeable
,AutoCloseable
Container for HTTP-related state that can be shared across incarnations of the transporter to optimize the
communication with servers.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap
<org.apache.http.HttpHost, AuthSchemePool> private static final String
private final ConcurrentMap
<ConnMgrConfig, org.apache.http.conn.HttpClientConnectionManager> private final ConcurrentMap
<GlobalState.CompoundKey, Boolean> private static final String
private final ConcurrentMap
<GlobalState.CompoundKey, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static GlobalState
get
(RepositorySystemSession session) ConcurrentMap
<org.apache.http.HttpHost, AuthSchemePool> org.apache.http.conn.HttpClientConnectionManager
getConnectionManager
(ConnMgrConfig config) static org.apache.http.conn.HttpClientConnectionManager
newConnectionManager
(ConnMgrConfig connMgrConfig) void
setExpectContinue
(GlobalState.CompoundKey key, boolean enabled) void
setUserToken
(GlobalState.CompoundKey key, Object userToken)
-
Field Details
-
KEY
-
CONFIG_PROP_CACHE_STATE
- See Also:
-
connectionManagers
private final ConcurrentMap<ConnMgrConfig,org.apache.http.conn.HttpClientConnectionManager> connectionManagers -
userTokens
-
authSchemePools
-
expectContinues
-
-
Constructor Details
-
GlobalState
private GlobalState()
-
-
Method Details
-
get
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getConnectionManager
-
newConnectionManager
public static org.apache.http.conn.HttpClientConnectionManager newConnectionManager(ConnMgrConfig connMgrConfig) -
getUserToken
-
setUserToken
-
getAuthSchemePools
-
getExpectContinue
-
setExpectContinue
-