This project has retired. For details please refer to its Attic page.
DownloadRemoteIndexTaskRequest xref
View Javadoc
1   package org.apache.archiva.scheduler.indexing;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  import org.apache.archiva.admin.model.beans.NetworkProxy;
22  import org.apache.archiva.admin.model.beans.RemoteRepository;
23  import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
24  import org.apache.archiva.proxy.common.WagonFactory;
25  import org.apache.maven.index.packer.IndexPacker;
26  import org.apache.maven.index.updater.IndexUpdater;
27  
28  /**
29   * @author Olivier Lamy
30   * @since 1.4-M1
31   */
32  public class DownloadRemoteIndexTaskRequest
33  {
34      private RemoteRepository remoteRepository;
35  
36      private RemoteRepositoryAdmin remoteRepositoryAdmin;
37  
38      private WagonFactory wagonFactory;
39  
40      private NetworkProxy networkProxy;
41  
42      private boolean fullDownload;
43  
44      private IndexUpdater indexUpdater;
45  
46      private IndexPacker indexPacker;
47  
48      public DownloadRemoteIndexTaskRequest()
49      {
50          // no op
51      }
52  
53      public RemoteRepository getRemoteRepository()
54      {
55          return remoteRepository;
56      }
57  
58      public DownloadRemoteIndexTaskRequest setRemoteRepository( RemoteRepository remoteRepository )
59      {
60          this.remoteRepository = remoteRepository;
61          return this;
62      }
63  
64  
65      public WagonFactory getWagonFactory()
66      {
67          return wagonFactory;
68      }
69  
70      public DownloadRemoteIndexTaskRequest setWagonFactory( WagonFactory wagonFactory )
71      {
72          this.wagonFactory = wagonFactory;
73          return this;
74      }
75  
76      public NetworkProxy getNetworkProxy()
77      {
78          return networkProxy;
79      }
80  
81      public DownloadRemoteIndexTaskRequest setNetworkProxy( NetworkProxy networkProxy )
82      {
83          this.networkProxy = networkProxy;
84          return this;
85      }
86  
87      public boolean isFullDownload()
88      {
89          return fullDownload;
90      }
91  
92      public DownloadRemoteIndexTaskRequest setFullDownload( boolean fullDownload )
93      {
94          this.fullDownload = fullDownload;
95          return this;
96      }
97  
98      public IndexUpdater getIndexUpdater()
99      {
100         return indexUpdater;
101     }
102 
103     public DownloadRemoteIndexTaskRequest setIndexUpdater( IndexUpdater indexUpdater )
104     {
105         this.indexUpdater = indexUpdater;
106         return this;
107     }
108 
109     public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
110     {
111         return remoteRepositoryAdmin;
112     }
113 
114     public DownloadRemoteIndexTaskRequest setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
115     {
116         this.remoteRepositoryAdmin = remoteRepositoryAdmin;
117         return this;
118     }
119 
120     public IndexPacker getIndexPacker()
121     {
122         return indexPacker;
123     }
124 
125     public DownloadRemoteIndexTaskRequest setIndexPacker( IndexPacker indexPacker )
126     {
127         this.indexPacker = indexPacker;
128         return this;
129     }
130 }