public abstract class AbstractRemoteRepository extends AbstractRepository implements EditableRemoteRepository
CRON_DEFINITION, location| Constructor and Description |
|---|
AbstractRemoteRepository(Locale primaryLocale,
RepositoryType type,
String id,
String name,
RepositoryStorage storage) |
AbstractRemoteRepository(RepositoryType type,
String id,
String name,
RepositoryStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraHeader(String header,
String value)
Adds an extra header.
|
void |
addExtraParameter(String key,
String value)
Adds an additional parameter.
|
String |
getCheckPath()
Returns the path relative to the root url of the repository that should be used
to check the availability of the repository.
|
RemoteRepositoryContent |
getContent()
Returns the interface to access the content of the repository.
|
Map<String,String> |
getExtraHeaders()
Returns extra headers that are added to the request to the remote repository.
|
Map<String,String> |
getExtraParameters()
Returns additional parameters, that are used for accessing the remote repository.
|
StorageAsset |
getLocalPath()
Remote repositories resolve always relative to the base directory.
|
RepositoryCredentials |
getLoginCredentials()
Returns the credentials used to login to the remote repository.
|
Duration |
getTimeout()
Returns the time duration, after that the request is aborted and a error is returned, if the remote repository
does not respond.
|
void |
setCheckPath(String path)
Sets the path relative to the root url of the repository that should be used to check
the availability of the repository.
|
void |
setContent(RemoteRepositoryContent content)
Sets the content.
|
void |
setCredentials(RepositoryCredentials credentials)
Sets the login credentials for login to the remote repository.
|
void |
setExtraHeaders(Map<String,String> headers)
Sets the extra headers, that are added to the requests to the remote repository.
|
void |
setExtraParameters(Map<String,String> params)
Sets additional parameters to be used to access the remote repository.
|
void |
setLocation(URI location)
Sets the location of the repository.
|
void |
setTimeout(Duration duration)
Sets the timeout for requests to the remote repository.
|
String |
toString() |
addAsset, addFailoverLocation, addFeature, clearFailoverLocations, close, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, getCapabilities, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocation, getName, getName, getPrimaryLocale, getSchedulingDefinition, getStorage, getType, handle, hasIndex, isOpen, isScanned, moveAsset, moveAsset, registerEventHandler, removeAsset, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setName, setPrimaryLocale, setScanned, setSchedulingDefinition, setStorage, supportsFeature, unregisterEventHandler, updateLocation, writeData, writeDataToChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setName, setScanned, setSchedulingDefinitionclose, getCapabilities, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocation, getName, getName, getSchedulingDefinition, getType, hasIndex, isOpen, isScanned, supportsFeatureregisterEventHandler, unregisterEventHandleraddAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannelpublic AbstractRemoteRepository(RepositoryType type, String id, String name, RepositoryStorage storage)
public AbstractRemoteRepository(Locale primaryLocale, RepositoryType type, String id, String name, RepositoryStorage storage)
public void setCredentials(RepositoryCredentials credentials)
EditableRemoteRepositorysetCredentials in interface EditableRemoteRepositorypublic void setCheckPath(String path)
EditableRemoteRepositorysetCheckPath in interface EditableRemoteRepositorypath - The path string.public void setExtraParameters(Map<String,String> params)
EditableRemoteRepositorysetExtraParameters in interface EditableRemoteRepositoryparams - A map of parameters, may not be null.public void addExtraParameter(String key, String value)
EditableRemoteRepositoryaddExtraParameter in interface EditableRemoteRepositorykey - The key of the parametervalue - The value of the parameterpublic void setExtraHeaders(Map<String,String> headers)
EditableRemoteRepositorysetExtraHeaders in interface EditableRemoteRepositorypublic void addExtraHeader(String header, String value)
EditableRemoteRepositoryaddExtraHeader in interface EditableRemoteRepositoryheader - The header namevalue - The header valuepublic void setTimeout(Duration duration)
EditableRemoteRepositorysetTimeout in interface EditableRemoteRepositoryduration - The amount of time, after that the request is aborted.public RemoteRepositoryContent getContent()
RemoteRepositorygetContent in interface RemoteRepositorypublic void setContent(RemoteRepositoryContent content)
EditableRemoteRepositorysetContent in interface EditableRemoteRepositorypublic RepositoryCredentials getLoginCredentials()
RemoteRepositorygetLoginCredentials in interface RemoteRepositorypublic String getCheckPath()
RemoteRepositorygetCheckPath in interface RemoteRepositorypublic Map<String,String> getExtraParameters()
RemoteRepositorygetExtraParameters in interface RemoteRepositorypublic Map<String,String> getExtraHeaders()
RemoteRepositorygetExtraHeaders in interface RemoteRepositorypublic Duration getTimeout()
RemoteRepositorygetTimeout in interface RemoteRepositorypublic StorageAsset getLocalPath()
getLocalPath in interface RepositorygetLocalPath in class AbstractRepositorypublic void setLocation(URI location)
EditableRepositorysetLocation in interface EditableRepositorysetLocation in class AbstractRepositorylocation - the location URICopyright © 2006–2019 The Apache Software Foundation. All rights reserved.