org.apache.archiva.repository.content.maven2
Class AbstractDefaultRepositoryContent

java.lang.Object
  extended by org.apache.archiva.repository.content.maven2.AbstractDefaultRepositoryContent
Direct Known Subclasses:
ManagedDefaultRepositoryContent, RemoteDefaultRepositoryContent

public abstract class AbstractDefaultRepositoryContent
extends Object

AbstractDefaultRepositoryContent - common methods for working with default (maven 2) layout.


Field Summary
protected static char ARTIFACT_SEPARATOR
           
protected  List<? extends ArtifactMappingProvider> artifactMappingProviders
           
private  PathParser defaultPathParser
           
protected static char GROUP_SEPARATOR
           
protected  org.slf4j.Logger log
           
static String MAVEN_METADATA
           
protected static char PATH_SEPARATOR
           
private  RepositoryPathTranslator pathTranslator
           
 
Constructor Summary
AbstractDefaultRepositoryContent()
           
 
Method Summary
private  String constructId(String artifactId, String version, String classifier, String type)
           
private  String formatAsDirectory(String directory)
           
protected  void initialize()
           
 ArtifactReference toArtifactReference(String path)
           
 String toMetadataPath(ProjectReference reference)
           
 String toMetadataPath(VersionedReference reference)
           
 String toPath(ArchivaArtifact reference)
           
 String toPath(ArtifactReference reference)
           
private  String toPath(String groupId, String artifactId, String baseVersion, String version, String classifier, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.slf4j.Logger log

MAVEN_METADATA

public static final String MAVEN_METADATA
See Also:
Constant Field Values

PATH_SEPARATOR

protected static final char PATH_SEPARATOR
See Also:
Constant Field Values

GROUP_SEPARATOR

protected static final char GROUP_SEPARATOR
See Also:
Constant Field Values

ARTIFACT_SEPARATOR

protected static final char ARTIFACT_SEPARATOR
See Also:
Constant Field Values

pathTranslator

private RepositoryPathTranslator pathTranslator

defaultPathParser

private PathParser defaultPathParser

artifactMappingProviders

@Inject
protected List<? extends ArtifactMappingProvider> artifactMappingProviders
Constructor Detail

AbstractDefaultRepositoryContent

public AbstractDefaultRepositoryContent()
Method Detail

initialize

@PostConstruct
protected void initialize()

toArtifactReference

public ArtifactReference toArtifactReference(String path)
                                      throws LayoutException
Throws:
LayoutException

toMetadataPath

public String toMetadataPath(ProjectReference reference)

toMetadataPath

public String toMetadataPath(VersionedReference reference)

toPath

public String toPath(ArchivaArtifact reference)

toPath

public String toPath(ArtifactReference reference)

formatAsDirectory

private String formatAsDirectory(String directory)

toPath

private String toPath(String groupId,
                      String artifactId,
                      String baseVersion,
                      String version,
                      String classifier,
                      String type)

constructId

private String constructId(String artifactId,
                           String version,
                           String classifier,
                           String type)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.