|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteRepositoryContent
RemoteRepositoryContent interface for interacting with a remote repository in an abstract way, without the need for processing based on URLs, or working with the database.
Method Summary | |
---|---|
java.lang.String |
getId()
Convenience method to get the repository id. |
org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration |
getRepository()
Get the repository configuration associated with this repository content. |
RepositoryURL |
getURL()
Convenience method to get the repository url. |
void |
setRepository(org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration repo)
Set the repository configuration to associate with this repository content. |
org.apache.maven.archiva.model.ArtifactReference |
toArtifactReference(java.lang.String path)
Given a repository relative path to a filename, return the VersionedReference object suitable for the path. |
java.lang.String |
toPath(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference, return the relative path to the artifact. |
RepositoryURL |
toURL(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference, return the url to the artifact. |
Method Detail |
---|
java.lang.String getId()
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration getRepository()
RepositoryURL getURL()
Convenience method to get the repository url.
Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )
void setRepository(org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration repo)
repo
- the repository to associate with this repository content.org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.String path) throws LayoutException
VersionedReference
object suitable for the path.
path
- the path relative to the repository base dir for the artifact.
ArtifactReference
representing the path. (or null if path cannot be converted to
a ArtifactReference
)
LayoutException
- if there was a problem converting the path to an artifact.java.lang.String toPath(org.apache.maven.archiva.model.ArtifactReference reference)
reference
- the artifact reference to use.
RepositoryURL toURL(org.apache.maven.archiva.model.ArtifactReference reference)
reference
- the artifact reference to use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |