|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.repository.content.AbstractLegacyRepositoryContent
org.apache.maven.archiva.repository.content.RemoteLegacyRepositoryContent
public class RemoteLegacyRepositoryContent
RemoteLegacyRepositoryContent
Constructor Summary | |
---|---|
RemoteLegacyRepositoryContent()
|
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 repository)
Set the repository configuration to associate with this repository content. |
org.apache.maven.archiva.model.ArtifactReference |
toArtifactReference(java.lang.String path)
Convert a path to an artifact reference. |
RepositoryURL |
toURL(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference, return the url to the artifact. |
Methods inherited from class org.apache.maven.archiva.repository.content.AbstractLegacyRepositoryContent |
---|
setLegacyPathParser, toPath, toPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.archiva.repository.RemoteRepositoryContent |
---|
toPath |
Constructor Detail |
---|
public RemoteLegacyRepositoryContent()
Method Detail |
---|
public java.lang.String getId()
RemoteRepositoryContent
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
getId
in interface RemoteRepositoryContent
public org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration getRepository()
RemoteRepositoryContent
getRepository
in interface RemoteRepositoryContent
public RepositoryURL getURL()
RemoteRepositoryContent
Convenience method to get the repository url.
Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )
getURL
in interface RemoteRepositoryContent
public void setRepository(org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration repository)
RemoteRepositoryContent
setRepository
in interface RemoteRepositoryContent
repository
- the repository to associate with this repository content.public org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.String path) throws LayoutException
toArtifactReference
in interface RemoteRepositoryContent
toArtifactReference
in class AbstractLegacyRepositoryContent
path
- the path to convert. (relative or full url path)
ArtifactReference
representing the path. (or null if path cannot be converted to
a ArtifactReference
)
LayoutException
- if the path cannot be converted to an artifact reference.public RepositoryURL toURL(org.apache.maven.archiva.model.ArtifactReference reference)
RemoteRepositoryContent
toURL
in interface RemoteRepositoryContent
reference
- the artifact reference to use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |