public interface RemoteRepositoryContent
Modifier and Type | Method and Description |
---|---|
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 repo)
Set the repository configuration to associate with this
repository content.
|
ArtifactReference |
toArtifactReference(String path)
Given a repository relative path to a filename, return the
VersionedReference object suitable for the path. |
String |
toPath(ArtifactReference reference)
Given an ArtifactReference, return the relative path to the artifact.
|
RepositoryURL |
toURL(ArtifactReference reference)
Given an ArtifactReference, return the url to the artifact.
|
String getId()
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
RemoteRepository getRepository()
RepositoryURL getURL()
Convenience method to get the repository url.
Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )
void setRepository(RemoteRepository repo)
repo
- the repository to associate with this repository content.ArtifactReference toArtifactReference(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.String toPath(ArtifactReference reference)
reference
- the artifact reference to use.RepositoryURL toURL(ArtifactReference reference)
reference
- the artifact reference to use.Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.