org.sonatype.aether.util.layout
Interface RepositoryLayout

All Known Implementing Classes:
MavenDefaultLayout

public interface RepositoryLayout

The layout for a remote repository whose artifacts/metadata can be addressed via URIs.

Author:
Benjamin Bentmann

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.
 

Method Detail

getPath

java.net.URI getPath(Artifact artifact)
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.

Parameters:
artifact - The artifact to get the URI for, must not be null.
Returns:
The relative URI to the artifact, never null.

getPath

java.net.URI getPath(Metadata metadata)
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.

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.