View Javadoc

1   package org.apache.maven.repository.metadata;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.util.List;
23  
24  import org.apache.maven.artifact.repository.ArtifactRepository;
25  
26  /** @author Oleg Gusakov */
27  public class MetadataResolutionRequest
28  {
29      protected ArtifactMetadata query;
30      protected ArtifactRepository localRepository;
31      protected List<ArtifactRepository> remoteRepositories;
32  
33      //--------------------------------------------------------------------
34      public MetadataResolutionRequest()
35      {
36      }
37  
38      //--------------------------------------------------------------------
39      public MetadataResolutionRequest( ArtifactMetadata query, ArtifactRepository localRepository,
40                                        List<ArtifactRepository> remoteRepositories )
41      {
42          this.query = query;
43          this.localRepository = localRepository;
44          this.remoteRepositories = remoteRepositories;
45      }
46  
47      //--------------------------------------------------------------------
48      public ArtifactMetadata getQuery()
49      {
50          return query;
51      }
52  
53      public void setQuery( ArtifactMetadata query )
54      {
55          this.query = query;
56      }
57  
58      public ArtifactRepository getLocalRepository()
59      {
60          return localRepository;
61      }
62  
63      public void setLocalRepository( ArtifactRepository localRepository )
64      {
65          this.localRepository = localRepository;
66      }
67  
68      public List<ArtifactRepository> getRemoteRepositories()
69      {
70          return remoteRepositories;
71      }
72  
73      public void setRemoteRepositories( List<ArtifactRepository> remoteRepositories )
74      {
75          this.remoteRepositories = remoteRepositories;
76      }
77      //--------------------------------------------------------------------
78      //--------------------------------------------------------------------
79  }