org.sonatype.aether.util.layout
Class MavenDefaultLayout
java.lang.Object
org.sonatype.aether.util.layout.MavenDefaultLayout
- All Implemented Interfaces:
- RepositoryLayout
public class MavenDefaultLayout
- extends Object
- implements RepositoryLayout
The layout for a Maven remote repository of type "default".
- Author:
- Benjamin Bentmann
Method Summary |
URI |
getPath(Artifact artifact)
Gets the URI to the location within a remote repository where the specified artifact would be stored. |
URI |
getPath(Metadata metadata)
Gets the URI to the location within a remote repository where the specified metadata would be stored. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenDefaultLayout
public MavenDefaultLayout()
getPath
public URI getPath(Artifact artifact)
- Description copied from interface:
RepositoryLayout
- Gets the URI to the location within a remote repository where the specified artifact would be stored. The URI is
relative to the root directory of the repository.
- Specified by:
getPath
in interface RepositoryLayout
- Parameters:
artifact
- The artifact to get the URI for, must not be null
.
- Returns:
- The relative URI to the artifact, never
null
.
getPath
public URI getPath(Metadata metadata)
- Description copied from interface:
RepositoryLayout
- Gets the URI to the location within a remote repository where the specified metadata would be stored. The URI is
relative to the root directory of the repository.
- Specified by:
getPath
in interface RepositoryLayout
- Parameters:
metadata
- The metadata to get the URI for, must not be null
.
- Returns:
- The relative URI to the metadata, never
null
.
Copyright © 2010-2013. All Rights Reserved.