View Javadoc

1   package org.sonatype.aether.repository;
2   
3   /*******************************************************************************
4    * Copyright (c) 2010-2011 Sonatype, Inc.
5    * All rights reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    *   http://www.eclipse.org/legal/epl-v10.html
9    *******************************************************************************/
10  
11  /**
12   * A repository hosting artifacts.
13   * 
14   * @author Benjamin Bentmann
15   */
16  public interface ArtifactRepository
17  {
18  
19      /**
20       * Gets the type of the repository, for example "default".
21       * 
22       * @return The (case-sensitive) type of the repository, never {@code null}.
23       */
24      String getContentType();
25  
26      /**
27       * Gets the identifier of this repository.
28       * 
29       * @return The (case-sensitive) identifier, never {@code null}.
30       */
31      String getId();
32  
33  }