public class MavenRemoteRepository extends AbstractRemoteRepository implements RemoteRepository
CRON_DEFINITION, location
Constructor and Description |
---|
MavenRemoteRepository(Locale primaryLocale,
String id,
String name,
FilesystemStorage storage) |
MavenRemoteRepository(String id,
String name,
FilesystemStorage storage) |
Modifier and Type | Method and Description |
---|---|
RepositoryCapabilities |
getCapabilities()
Returns the capabilities of the repository implementation.
|
<T extends RepositoryFeature<T>> |
getFeature(Class<T> clazz)
Extension method that allows to provide different features that are not supported by all
repository types.
|
boolean |
hasIndex()
Returns true, if this repository has a index available
|
static MavenRemoteRepository |
newLocalInstance(String id,
String name,
Path basePath) |
<T extends RepositoryFeature<T>> |
supportsFeature(Class<T> clazz)
Returns true, if the requested feature is supported by this repository.
|
String |
toString() |
addExtraHeader, addExtraParameter, getCheckPath, getContent, getExtraHeaders, getExtraParameters, getLocalPath, getLoginCredentials, getTimeout, setCheckPath, setContent, setCredentials, setExtraHeaders, setExtraParameters, setLocation, setTimeout
addAsset, addFailoverLocation, addFeature, clearFailoverLocations, close, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, getDescription, getDescription, getFailoverLocations, getId, getIndexingContext, getLayout, getLocation, getName, getName, getPrimaryLocale, getSchedulingDefinition, getStorage, getType, handle, isOpen, isScanned, moveAsset, moveAsset, registerEventHandler, removeAsset, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setName, setPrimaryLocale, setScanned, setSchedulingDefinition, setStorage, unregisterEventHandler, updateLocation, writeData, writeDataToChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCheckPath, getContent, getExtraHeaders, getExtraParameters, getLoginCredentials, getTimeout
close, getDescription, getDescription, getFailoverLocations, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, isOpen, isScanned
registerEventHandler, unregisterEventHandler
addAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannel
addFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setName, setScanned, setSchedulingDefinition
public MavenRemoteRepository(String id, String name, FilesystemStorage storage)
public MavenRemoteRepository(Locale primaryLocale, String id, String name, FilesystemStorage storage)
public boolean hasIndex()
Repository
hasIndex
in interface Repository
hasIndex
in class AbstractRepository
public RepositoryCapabilities getCapabilities()
Repository
getCapabilities
in interface Repository
getCapabilities
in class AbstractRepository
public <T extends RepositoryFeature<T>> RepositoryFeature<T> getFeature(Class<T> clazz) throws UnsupportedFeatureException
Repository
getFeature
in interface Repository
getFeature
in class AbstractRepository
T
- This is the class of the featureclazz
- The feature class that is requestedUnsupportedFeatureException
- if the feature is not supported by this repository typepublic <T extends RepositoryFeature<T>> boolean supportsFeature(Class<T> clazz)
Repository
supportsFeature
in interface Repository
supportsFeature
in class AbstractRepository
T
- The requested feature classclazz
- The requested feature classpublic String toString()
toString
in class AbstractRemoteRepository
public static MavenRemoteRepository newLocalInstance(String id, String name, Path basePath) throws IOException
IOException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.