public class DefaultExternalResourceRepository extends org.apache.ivy.plugins.repository.AbstractRepository implements ExternalResourceRepository
| Constructor and Description |
|---|
DefaultExternalResourceRepository(String name,
ExternalResourceAccessor accessor,
ExternalResourceUploader uploader,
ExternalResourceLister lister) |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadResource(ExternalResource resource,
File destination) |
void |
get(String source,
File destination) |
ExternalResource |
getResource(String source) |
ExternalResource |
getResource(String source,
LocallyAvailableResourceCandidates localCandidates,
CachedExternalResource cached) |
ExternalResourceMetaData |
getResourceMetaData(String source)
Fetches only the metadata for the result.
|
List |
list(String parent) |
protected void |
put(File source,
String destination,
boolean overwrite) |
addTransferListener, fireTransferCompleted, fireTransferCompleted, fireTransferError, fireTransferError, fireTransferEvent, fireTransferInitiated, fireTransferProgress, fireTransferStarted, fireTransferStarted, getFileSeparator, getName, hasTransferListener, put, removeTransferListener, setName, standardize, toStringpublic DefaultExternalResourceRepository(String name, ExternalResourceAccessor accessor, ExternalResourceUploader uploader, ExternalResourceLister lister)
public ExternalResource getResource(String source) throws IOException
getResource in interface org.apache.ivy.plugins.repository.RepositorygetResource in interface ExternalResourceRepositoryIOExceptionpublic ExternalResource getResource(String source, LocallyAvailableResourceCandidates localCandidates, CachedExternalResource cached) throws IOException
getResource in interface ExternalResourceRepositoryIOExceptionpublic ExternalResourceMetaData getResourceMetaData(String source) throws IOException
ExternalResourceRepositorygetResourceMetaData in interface ExternalResourceRepositorysource - The location of the resource to obtain the metadata forIOExceptionpublic void get(String source, File destination) throws IOException
get in interface org.apache.ivy.plugins.repository.RepositoryIOExceptionpublic void downloadResource(ExternalResource resource, File destination) throws IOException
downloadResource in interface ExternalResourceRepositoryIOExceptionprotected void put(File source, String destination, boolean overwrite) throws IOException
put in class org.apache.ivy.plugins.repository.AbstractRepositoryIOExceptionpublic List list(String parent) throws IOException
list in interface org.apache.ivy.plugins.repository.RepositoryIOExceptionCopyright © 2013. All rights reserved