org.apache.archiva.repository.content.legacy
Class LegacyPathParser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_ARTIFACT_PATH
private static final String INVALID_ARTIFACT_PATH
- See Also:
- Constant Field Values
configuration
protected ArchivaConfiguration configuration
LegacyPathParser
public LegacyPathParser(ArchivaConfiguration configuration)
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.