public class RemoteDefaultRepositoryContent extends AbstractDefaultRepositoryContent implements RemoteRepositoryContent
ARTIFACT_SEPARATOR, artifactMappingProviders, GROUP_SEPARATOR, log, MAVEN_METADATA, PATH_SEPARATOR| Constructor and Description | 
|---|
| RemoteDefaultRepositoryContent(List<? extends ArtifactMappingProvider> artifactMappingProviders) | 
| 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 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. | 
setArtifactMappingProviders, toMetadataPath, toMetadataPath, toPath, toPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoPathpublic RemoteDefaultRepositoryContent(List<? extends ArtifactMappingProvider> artifactMappingProviders)
public String getId()
RemoteRepositoryContentConvenience method to get the repository id.
 Equivalent to calling .getRepository().getId()
 
getId in interface RemoteRepositoryContentpublic RemoteRepository getRepository()
RemoteRepositoryContentgetRepository in interface RemoteRepositoryContentpublic RepositoryURL getURL()
RemoteRepositoryContentConvenience method to get the repository url.
 Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )
 
getURL in interface RemoteRepositoryContentpublic void setRepository(RemoteRepository repository)
RemoteRepositoryContentsetRepository in interface RemoteRepositoryContentrepository - the repository to associate with this repository content.public ArtifactReference toArtifactReference(String path) throws LayoutException
toArtifactReference in interface RepositoryContenttoArtifactReference in class AbstractDefaultRepositoryContentpath - 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)
RemoteRepositoryContenttoURL in interface RemoteRepositoryContentreference - the artifact reference to use.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.