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

java.lang.Object
  extended by org.apache.archiva.repository.content.legacy.LegacyPathParser
All Implemented Interfaces:
PathParser

public class LegacyPathParser
extends Object
implements PathParser

LegacyPathParser is a parser for maven 1 (legacy layout) paths to ArtifactReference.


Field Summary
protected  ArchivaConfiguration configuration
           
private static String INVALID_ARTIFACT_PATH
           
 
Constructor Summary
LegacyPathParser(ArchivaConfiguration configuration)
           
 
Method Summary
 ArtifactReference toArtifactReference(String path)
          Take a path and get the ArtifactReference associated with it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_ARTIFACT_PATH

private static final String INVALID_ARTIFACT_PATH
See Also:
Constant Field Values

configuration

protected ArchivaConfiguration configuration
Constructor Detail

LegacyPathParser

public LegacyPathParser(ArchivaConfiguration configuration)
Method Detail

toArtifactReference

public ArtifactReference toArtifactReference(String path)
                                      throws LayoutException
Take a path and get the ArtifactReference associated with it.

Specified by:
toArtifactReference in interface PathParser
Parameters:
path - the relative path to parse.
Returns:
the ArtifactReference for the provided path. (never null)
Throws:
LayoutException - if there was a problem parsing the path.
See Also:
PathParser.toArtifactReference(String)


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