org.sonatype.aether.util.layout
Class MavenDefaultLayout

java.lang.Object
  extended by org.sonatype.aether.util.layout.MavenDefaultLayout
All Implemented Interfaces:
RepositoryLayout

public class MavenDefaultLayout
extends java.lang.Object
implements RepositoryLayout

The layout for a Maven remote repository of type "default".

Author:
Benjamin Bentmann

Constructor Summary
MavenDefaultLayout()
           
 
Method Summary
 java.net.URI getPath(Artifact artifact)
          Gets the URI to the location within a remote repository where the specified artifact would be stored.
 java.net.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
 

Constructor Detail

MavenDefaultLayout

public MavenDefaultLayout()
Method Detail

getPath

public java.net.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 java.net.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-2011 Sonatype, Inc.. All Rights Reserved.