Package org.commonjava.indy.model.galley
Class RepositoryLocation
- java.lang.Object
-
- org.commonjava.indy.model.galley.RepositoryLocation
-
- All Implemented Interfaces:
KeyedLocation,org.commonjava.maven.galley.model.Location,org.commonjava.maven.galley.transport.htcli.model.HttpLocation
public class RepositoryLocation extends Object implements org.commonjava.maven.galley.transport.htcli.model.HttpLocation, KeyedLocation
KeyedLocationimplementation that represents aRemoteRepositoryIndy store, and bridges the handling ofRemoteRepositoryattributes such as the various timeout types (not-found-cache, connection, and cache timeouts) to expose them via theLocationAPI.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_NFC_TIMEOUT_SECONDS-
Fields inherited from interface org.commonjava.maven.galley.model.Location
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 Summary
Constructors Constructor Description RepositoryLocation(org.commonjava.indy.model.core.RemoteRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsDeletion()booleanallowsDownloading()booleanallowsPublishing()booleanallowsReleases()booleanallowsSnapshots()booleanallowsStoring()booleanequals(Object obj)<T> TgetAttribute(String key, Class<T> type)<T> TgetAttribute(String key, Class<T> type, T defaultValue)Map<String,Object>getAttributes()StringgetHost()org.commonjava.indy.model.core.StoreKeygetKey()StringgetKeyCertPem()StringgetName()intgetPort()StringgetProxyHost()intgetProxyPort()StringgetProxyUser()StringgetServerCertPem()org.commonjava.maven.galley.transport.htcli.model.LocationTrustTypegetTrustType()StringgetUri()StringgetUser()inthashCode()booleanisIgnoreHostnameVerification()ObjectremoveAttribute(String key)ObjectsetAttribute(String key, Object value)StringtoString()
-
-
-
Field Detail
-
ATTR_NFC_TIMEOUT_SECONDS
public static final String ATTR_NFC_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowsPublishing
public boolean allowsPublishing()
- Specified by:
allowsPublishingin interfaceorg.commonjava.maven.galley.model.Location
-
allowsStoring
public boolean allowsStoring()
- Specified by:
allowsStoringin interfaceorg.commonjava.maven.galley.model.Location
-
allowsSnapshots
public boolean allowsSnapshots()
- Specified by:
allowsSnapshotsin interfaceorg.commonjava.maven.galley.model.Location
-
allowsReleases
public boolean allowsReleases()
- Specified by:
allowsReleasesin interfaceorg.commonjava.maven.galley.model.Location
-
allowsDeletion
public boolean allowsDeletion()
- Specified by:
allowsDeletionin interfaceorg.commonjava.maven.galley.model.Location
-
getUri
public String getUri()
- Specified by:
getUriin interfaceorg.commonjava.maven.galley.model.Location
-
getAttributes
public Map<String,Object> getAttributes()
- Specified by:
getAttributesin interfaceorg.commonjava.maven.galley.model.Location
-
getAttribute
public <T> T getAttribute(String key, Class<T> type)
- Specified by:
getAttributein interfaceorg.commonjava.maven.galley.model.Location
-
getAttribute
public <T> T getAttribute(String key, Class<T> type, T defaultValue)
- Specified by:
getAttributein interfaceorg.commonjava.maven.galley.model.Location
-
removeAttribute
public Object removeAttribute(String key)
- Specified by:
removeAttributein interfaceorg.commonjava.maven.galley.model.Location
-
setAttribute
public Object setAttribute(String key, Object value)
- Specified by:
setAttributein interfaceorg.commonjava.maven.galley.model.Location
-
getKeyCertPem
public String getKeyCertPem()
- Specified by:
getKeyCertPemin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getUser
public String getUser()
- Specified by:
getUserin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getHost
public String getHost()
- Specified by:
getHostin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getPort
public int getPort()
- Specified by:
getPortin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getServerCertPem
public String getServerCertPem()
- Specified by:
getServerCertPemin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getTrustType
public org.commonjava.maven.galley.transport.htcli.model.LocationTrustType getTrustType()
- Specified by:
getTrustTypein interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getProxyHost
public String getProxyHost()
- Specified by:
getProxyHostin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getProxyPort
public int getProxyPort()
- Specified by:
getProxyPortin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
isIgnoreHostnameVerification
public boolean isIgnoreHostnameVerification()
- Specified by:
isIgnoreHostnameVerificationin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getProxyUser
public String getProxyUser()
- Specified by:
getProxyUserin interfaceorg.commonjava.maven.galley.transport.htcli.model.HttpLocation
-
getKey
public org.commonjava.indy.model.core.StoreKey getKey()
- Specified by:
getKeyin interfaceKeyedLocation
-
allowsDownloading
public boolean allowsDownloading()
- Specified by:
allowsDownloadingin interfaceorg.commonjava.maven.galley.model.Location
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.commonjava.maven.galley.model.Location
-
hashCode
public int hashCode()
-
-