org.apache.archiva.repository.content.legacy
Class AbstractLegacyRepositoryContent

java.lang.Object
  extended by org.apache.archiva.repository.content.legacy.AbstractLegacyRepositoryContent
Direct Known Subclasses:
ManagedLegacyRepositoryContent, RemoteLegacyRepositoryContent

public abstract class AbstractLegacyRepositoryContent
extends Object

AbstractLegacyRepositoryContent


Field Summary
private  PathParser legacyPathParser
           
private static String PATH_SEPARATOR
           
private static Map<String,String> typeToDirectoryMap
           
 
Constructor Summary
AbstractLegacyRepositoryContent()
           
 
Method Summary
private  String getDirectory(String type)
           
 void setLegacyPathParser(PathParser parser)
           
 ArtifactReference toArtifactReference(String path)
           
 String toPath(ArchivaArtifact reference)
           
 String toPath(ArtifactReference reference)
           
private  String toPath(String groupId, String artifactId, 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

PATH_SEPARATOR

private static final String PATH_SEPARATOR
See Also:
Constant Field Values

typeToDirectoryMap

private static final Map<String,String> typeToDirectoryMap

legacyPathParser

@Inject
@Named(value="pathParser#legacy")
private PathParser legacyPathParser
Constructor Detail

AbstractLegacyRepositoryContent

public AbstractLegacyRepositoryContent()
Method Detail

toArtifactReference

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

toPath

public String toPath(ArchivaArtifact reference)

toPath

public String toPath(ArtifactReference reference)

toPath

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

getDirectory

private String getDirectory(String type)

setLegacyPathParser

public void setLegacyPathParser(PathParser parser)


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