public class CacheOnlyLocation extends Object implements KeyedLocation
KeyedLocation implementation that only knows about locally hosted/cached content. During Galley's handling, it can be converted into other
store-related KeyedLocation types, assuming it's not referencing a HostedRepository, via the IndyLocationExpander component.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 |
|---|
CacheOnlyLocation(org.commonjava.indy.model.core.HostedRepository repo) |
CacheOnlyLocation(org.commonjava.indy.model.core.StoreKey key) |
| 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() |
org.commonjava.indy.model.core.StoreKey |
getKey() |
String |
getName() |
String |
getUri() |
int |
hashCode() |
boolean |
isHostedRepository() |
Object |
removeAttribute(String key) |
Object |
setAttribute(String key,
Object value) |
String |
toString() |
public CacheOnlyLocation(org.commonjava.indy.model.core.HostedRepository repo)
public CacheOnlyLocation(org.commonjava.indy.model.core.StoreKey key)
public boolean isHostedRepository()
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 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.