public class RepositoryLocation extends Object implements org.commonjava.maven.galley.transport.htcli.model.HttpLocation, KeyedLocation
KeyedLocation implementation that represents a RemoteRepository Indy store, and bridges the handling of RemoteRepository
attributes such as the various timeout types (not-found-cache, connection, and cache timeouts) to expose them via the Location API.| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_NFC_TIMEOUT_SECONDS |
ATTR_ALT_STORAGE_LOCATION, CACHE_TIMEOUT_SECONDS, CONNECTION_TIMEOUT_SECONDS, DEFAULT_CACHE_TIMEOUT_SECONDS, DEFAULT_CONNECTION_TIMEOUT_SECONDS, DEFAULT_MAX_CONNECTIONS, MAX_CONNECTIONS, METADATA_TIMEOUT_SECONDS, MIN_CACHE_TIMEOUT_SECONDS| Constructor and Description |
|---|
RepositoryLocation(org.commonjava.indy.model.core.RemoteRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsDeletion() |
boolean |
allowsDownloading() |
boolean |
allowsPublishing() |
boolean |
allowsReleases() |
boolean |
allowsSnapshots() |
boolean |
allowsStoring() |
boolean |
equals(Object obj) |
<T> T |
getAttribute(String key,
Class<T> type) |
<T> T |
getAttribute(String key,
Class<T> type,
T defaultValue) |
Map<String,Object> |
getAttributes() |
String |
getHost() |
org.commonjava.indy.model.core.StoreKey |
getKey() |
String |
getKeyCertPem() |
String |
getName() |
int |
getPort() |
String |
getProxyHost() |
int |
getProxyPort() |
String |
getProxyUser() |
String |
getServerCertPem() |
org.commonjava.maven.galley.transport.htcli.model.LocationTrustType |
getTrustType() |
String |
getUri() |
String |
getUser() |
int |
hashCode() |
Object |
removeAttribute(String key) |
Object |
setAttribute(String key,
Object value) |
String |
toString() |
public static final String ATTR_NFC_TIMEOUT_SECONDS
public RepositoryLocation(org.commonjava.indy.model.core.RemoteRepository repository)
public boolean allowsPublishing()
allowsPublishing in interface org.commonjava.maven.galley.model.Locationpublic boolean allowsStoring()
allowsStoring in interface org.commonjava.maven.galley.model.Locationpublic boolean allowsSnapshots()
allowsSnapshots in interface org.commonjava.maven.galley.model.Locationpublic boolean allowsReleases()
allowsReleases in interface org.commonjava.maven.galley.model.Locationpublic boolean allowsDeletion()
allowsDeletion in interface org.commonjava.maven.galley.model.Locationpublic String getUri()
getUri in interface org.commonjava.maven.galley.model.Locationpublic Map<String,Object> getAttributes()
getAttributes in interface org.commonjava.maven.galley.model.Locationpublic <T> T getAttribute(String key, Class<T> type)
getAttribute in interface org.commonjava.maven.galley.model.Locationpublic <T> T getAttribute(String key, Class<T> type, T defaultValue)
getAttribute in interface org.commonjava.maven.galley.model.Locationpublic Object removeAttribute(String key)
removeAttribute in interface org.commonjava.maven.galley.model.Locationpublic Object setAttribute(String key, Object value)
setAttribute in interface org.commonjava.maven.galley.model.Locationpublic String getKeyCertPem()
getKeyCertPem in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic String getUser()
getUser in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic String getHost()
getHost in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic int getPort()
getPort in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic String getServerCertPem()
getServerCertPem in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic org.commonjava.maven.galley.transport.htcli.model.LocationTrustType getTrustType()
getTrustType in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic String getProxyHost()
getProxyHost in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic int getProxyPort()
getProxyPort in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic String getProxyUser()
getProxyUser in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocationpublic org.commonjava.indy.model.core.StoreKey getKey()
getKey in interface KeyedLocationpublic boolean allowsDownloading()
allowsDownloading in interface org.commonjava.maven.galley.model.Locationpublic String getName()
getName in interface org.commonjava.maven.galley.model.Locationpublic int hashCode()
Copyright © 2011-2018-2018. All Rights Reserved.