Class RelativeURLRepository
java.lang.Object
org.apache.ivy.plugins.repository.AbstractRepository
org.apache.ivy.plugins.repository.url.URLRepository
org.apache.ivy.osgi.repo.RelativeURLRepository
- All Implemented Interfaces:
Repository
-
Constructor Summary
ConstructorsConstructorDescriptionRelativeURLRepository(URL baseUrl) Deprecated.Since 2.5.RelativeURLRepository(URL baseUrl, TimeoutConstraint timeoutConstraint) -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String source) Return the resource associated with a specified identifier.Methods inherited from class URLRepository
get, list, putMethods inherited from class AbstractRepository
addTransferListener, fireTransferCompleted, fireTransferCompleted, fireTransferError, fireTransferError, fireTransferEvent, fireTransferInitiated, fireTransferProgress, fireTransferStarted, fireTransferStarted, getFileSeparator, getName, getTimeoutConstraint, hasTransferListener, put, removeTransferListener, setName, standardize, toString
-
Constructor Details
-
RelativeURLRepository
public RelativeURLRepository() -
RelativeURLRepository
Deprecated.Since 2.5. UseRelativeURLRepository(URL, TimeoutConstraint)instead- Parameters:
baseUrl- ditto
-
RelativeURLRepository
-
-
Method Details
-
getResource
Description copied from interface:RepositoryReturn the resource associated with a specified identifier. If the resource does not exist, it should return a Resource with exists() returning false. An IOException should only be thrown when a real IO problem occurs, like the impossibility to connect to a server.- Specified by:
getResourcein interfaceRepository- Overrides:
getResourcein classURLRepository- Parameters:
source- A string identifying the resource.- Returns:
- The resource associated with the resource identifier.
- Throws:
IOException- On error while trying to get resource.
-