|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.archiva.repository.content.legacy.AbstractLegacyRepositoryContent org.apache.archiva.repository.content.legacy.RemoteLegacyRepositoryContent
@Service(value="remoteRepositoryContent#legacy") @Scope(value="prototype") public class RemoteLegacyRepositoryContent
RemoteLegacyRepositoryContent
Field Summary | |
---|---|
private RemoteRepository |
repository
|
Constructor Summary | |
---|---|
RemoteLegacyRepositoryContent()
|
Method Summary | |
---|---|
String |
getId()
Convenience method to get the repository id. |
RemoteRepository |
getRepository()
Get the repository configuration associated with this repository content. |
RepositoryURL |
getURL()
Convenience method to get the repository url. |
void |
setRepository(RemoteRepository repository)
Set the repository configuration to associate with this repository content. |
ArtifactReference |
toArtifactReference(String path)
Convert a path to an artifact reference. |
RepositoryURL |
toURL(ArtifactReference reference)
Given an ArtifactReference, return the url to the artifact. |
Methods inherited from class org.apache.archiva.repository.content.legacy.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.archiva.repository.RemoteRepositoryContent |
---|
toPath |
Field Detail |
---|
private RemoteRepository repository
Constructor Detail |
---|
public RemoteLegacyRepositoryContent()
Method Detail |
---|
public String getId()
RemoteRepositoryContent
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
getId
in interface RemoteRepositoryContent
public RemoteRepository 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(RemoteRepository repository)
RemoteRepositoryContent
setRepository
in interface RemoteRepositoryContent
repository
- the repository to associate with this repository content.public ArtifactReference toArtifactReference(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(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 |