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

Package class diagram package LegacyPathParser
java.lang.Object
  extended by org.apache.maven.archiva.repository.content.LegacyPathParser
All Implemented Interfaces:
PathParser

public class LegacyPathParser
extends java.lang.Object
implements PathParser

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


Field Summary
protected  org.apache.maven.archiva.configuration.ArchivaConfiguration configuration
           
 
Constructor Summary
LegacyPathParser()
           
 
Method Summary
 org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.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

configuration

protected org.apache.maven.archiva.configuration.ArchivaConfiguration configuration
Constructor Detail

LegacyPathParser

public LegacyPathParser()
Method Detail

toArtifactReference

public org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.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(java.lang.String)