public abstract class AbstractDefaultRepositoryContent extends Object implements RepositoryContent
| Modifier and Type | Field and Description | 
|---|---|
| protected static char | ARTIFACT_SEPARATOR | 
| protected List<? extends ArtifactMappingProvider> | artifactMappingProviders | 
| protected static char | GROUP_SEPARATOR | 
| protected org.slf4j.Logger | log | 
| static String | MAVEN_METADATA | 
| protected static char | PATH_SEPARATOR | 
| Modifier and Type | Method and Description | 
|---|---|
| void | setArtifactMappingProviders(List<? extends ArtifactMappingProvider> artifactMappingProviders) | 
| ArtifactReference | toArtifactReference(String path)Given a repository relative path to a filename, return the  VersionedReferenceobject suitable for the path. | 
| String | toMetadataPath(ProjectReference reference) | 
| String | toMetadataPath(VersionedReference reference) | 
| String | toPath(ArchivaArtifact reference) | 
| String | toPath(ArtifactReference reference)Given an  ArtifactReference, return the relative path to the artifact. | 
protected org.slf4j.Logger log
public static final String MAVEN_METADATA
protected static final char PATH_SEPARATOR
protected static final char GROUP_SEPARATOR
protected static final char ARTIFACT_SEPARATOR
protected List<? extends ArtifactMappingProvider> artifactMappingProviders
public void setArtifactMappingProviders(List<? extends ArtifactMappingProvider> artifactMappingProviders)
public ArtifactReference toArtifactReference(String path) throws LayoutException
RepositoryContentVersionedReference object suitable for the path.toArtifactReference in interface RepositoryContentpath - 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.public String toMetadataPath(ProjectReference reference)
public String toMetadataPath(VersionedReference reference)
public String toPath(ArchivaArtifact reference)
public String toPath(ArtifactReference reference)
RepositoryContentArtifactReference, return the relative path to the artifact.toPath in interface RepositoryContentreference - the artifact reference to use.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.