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

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

public class DefaultPathParser
extends java.lang.Object
implements PathParser

DefaultPathParser is a parser for maven 2 (default layout) paths to ArtifactReference.


Constructor Summary
DefaultPathParser()
           
 
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
 

Constructor Detail

DefaultPathParser

public DefaultPathParser()
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)