public final class ConfigurationProperties extends Object
RepositorySystemSession.getConfigProperties()
Modifier and Type | Field and Description |
---|---|
static String |
CONNECT_TIMEOUT
The timeout (in milliseconds) to wait for a successful connection to a remote server.
|
static int |
DEFAULT_CONNECT_TIMEOUT
The default connect timeout to use if
CONNECT_TIMEOUT isn't set. |
static String |
DEFAULT_HTTP_CREDENTIAL_ENCODING
The default encoding/charset to use if
HTTP_CREDENTIAL_ENCODING isn't set. |
static boolean |
DEFAULT_INTERACTIVE
The default interactive mode if
INTERACTIVE isn't set. |
static int |
DEFAULT_REQUEST_TIMEOUT
The default request timeout to use if
REQUEST_TIMEOUT isn't set. |
static String |
DEFAULT_USER_AGENT
The default user agent to use if
USER_AGENT isn't set. |
static String |
HTTP_CREDENTIAL_ENCODING
The encoding/charset to use when exchanging credentials with HTTP servers.
|
static String |
HTTP_HEADERS
The request headers to use for HTTP-based repository connectors.
|
static String |
INTERACTIVE
A flag indicating whether interaction with the user is allowed.
|
static String |
REQUEST_TIMEOUT
The timeout (in milliseconds) to wait for a response from a remote server.
|
static String |
USER_AGENT
The user agent that repository connectors should report to servers.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
get(Map<?,?> properties,
String key,
boolean defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
static int |
get(Map<?,?> properties,
String key,
int defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
static String |
get(Map<?,?> properties,
String key,
String defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
static boolean |
get(RepositorySystemSession session,
String key,
boolean defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
static int |
get(RepositorySystemSession session,
String key,
int defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
static String |
get(RepositorySystemSession session,
String key,
String defaultValue)
Deprecated.
As of version 1.12, use
org.sonatype.aether.util.ConfigUtils instead. |
public static final String INTERACTIVE
DEFAULT_INTERACTIVE
,
Constant Field Valuespublic static final boolean DEFAULT_INTERACTIVE
INTERACTIVE
isn't set.public static final String USER_AGENT
DEFAULT_USER_AGENT
,
Constant Field Valuespublic static final String DEFAULT_USER_AGENT
USER_AGENT
isn't set.public static final String CONNECT_TIMEOUT
DEFAULT_CONNECT_TIMEOUT
,
Constant Field Valuespublic static final int DEFAULT_CONNECT_TIMEOUT
CONNECT_TIMEOUT
isn't set.public static final String REQUEST_TIMEOUT
DEFAULT_REQUEST_TIMEOUT
,
Constant Field Valuespublic static final int DEFAULT_REQUEST_TIMEOUT
REQUEST_TIMEOUT
isn't set.public static final String HTTP_HEADERS
Map<String, String>
, mapping a header name to its value. Besides this general key, clients may also
specify headers for a specific remote repository by appending the suffix .<repoId>
to this key when
storing the headers map. The repository-specific headers map is supposed to be complete, i.e. is not merged with
the general headers map.public static final String HTTP_CREDENTIAL_ENCODING
.<repoId>
to this key
when storing the charset name.public static final String DEFAULT_HTTP_CREDENTIAL_ENCODING
HTTP_CREDENTIAL_ENCODING
isn't set.@Deprecated public static String get(Map<?,?> properties, String key, String defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.properties
- The configuration properties to read, must not be null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set, may be null
.null
if none.@Deprecated public static String get(RepositorySystemSession session, String key, String defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.session
- The repository system session from which to read the configuration property, must not be
null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set, may be null
.null
if none.@Deprecated public static int get(Map<?,?> properties, String key, int defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.properties
- The configuration properties to read, must not be null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set.@Deprecated public static int get(RepositorySystemSession session, String key, int defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.session
- The repository system session from which to read the configuration property, must not be
null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set.@Deprecated public static boolean get(Map<?,?> properties, String key, boolean defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.properties
- The configuration properties to read, must not be null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set.@Deprecated public static boolean get(RepositorySystemSession session, String key, boolean defaultValue)
org.sonatype.aether.util.ConfigUtils
instead.session
- The repository system session from which to read the configuration property, must not be
null
.key
- The property to read, must not be null
.defaultValue
- The default value to return in case the property isn't set.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.