public class RemoteRepository extends AbstractRepository
RemoteRepository
is a Repository
located on a remote web server.Repository
GSON
Modifier | Constructor and Description |
---|---|
protected |
RemoteRepository(java.lang.String name,
java.net.URI uri)
(Internal) Constructs a remote repository.
|
Modifier and Type | Method and Description |
---|---|
java.net.URI |
getBaseUri()
Returns the URI to the base of the repository.
|
java.lang.String |
getName()
Returns the repository name.
|
boolean |
isRemote()
Returns whether the repository is remote repository.
|
Metadata |
locate(MRL mrl)
Returns the metadata at a mrl.
|
Artifact |
resolve(MRL mrl,
java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> filter)
Returns the artifact matching a mrl, version, and property filter.
|
download, getCacheDirectory, getFile, getResources, listDirectory, md5hash, openStream, prepare, resolvePath, save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceDirectory, newInstance, newInstance, prepare, registerRepositoryFactory
protected RemoteRepository(java.lang.String name, java.net.URI uri)
name
- the repository nameuri
- the repository locationpublic boolean isRemote()
public java.lang.String getName()
public java.net.URI getBaseUri()
public Metadata locate(MRL mrl) throws java.io.IOException
mrl
- the mrl of the metadata to retrievejava.io.IOException
- if it failed to load the metadatapublic Artifact resolve(MRL mrl, java.lang.String version, java.util.Map<java.lang.String,java.lang.String> filter) throws java.io.IOException
mrl
- the mrl to match the artifact againstversion
- the version of the artifactfilter
- the property filterjava.io.IOException
- if it failed to load the artifact