This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.scheduler.indexing.maven;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import org.apache.archiva.proxy.maven.WagonFactory;
022import org.apache.archiva.proxy.model.NetworkProxy;
023import org.apache.archiva.repository.RemoteRepository;
024import org.apache.maven.index.packer.IndexPacker;
025import org.apache.maven.index.updater.IndexUpdater;
026
027/**
028 * @author Olivier Lamy
029 * @since 1.4-M1
030 */
031public class DownloadRemoteIndexTaskRequest
032{
033    private RemoteRepository remoteRepository;
034
035    private WagonFactory wagonFactory;
036
037    private NetworkProxy networkProxy;
038
039    private boolean fullDownload;
040
041    private IndexUpdater indexUpdater;
042
043    private IndexPacker indexPacker;
044
045    public DownloadRemoteIndexTaskRequest()
046    {
047        // no op
048    }
049
050    public RemoteRepository getRemoteRepository()
051    {
052        return remoteRepository;
053    }
054
055    public DownloadRemoteIndexTaskRequest setRemoteRepository( RemoteRepository remoteRepository )
056    {
057        this.remoteRepository = remoteRepository;
058        return this;
059    }
060
061
062    public WagonFactory getWagonFactory()
063    {
064        return wagonFactory;
065    }
066
067    public DownloadRemoteIndexTaskRequest setWagonFactory( WagonFactory wagonFactory )
068    {
069        this.wagonFactory = wagonFactory;
070        return this;
071    }
072
073    public NetworkProxy getNetworkProxy()
074    {
075        return networkProxy;
076    }
077
078    public DownloadRemoteIndexTaskRequest setNetworkProxy( NetworkProxy networkProxy )
079    {
080        this.networkProxy = networkProxy;
081        return this;
082    }
083
084    public boolean isFullDownload()
085    {
086        return fullDownload;
087    }
088
089    public DownloadRemoteIndexTaskRequest setFullDownload( boolean fullDownload )
090    {
091        this.fullDownload = fullDownload;
092        return this;
093    }
094
095    public IndexUpdater getIndexUpdater()
096    {
097        return indexUpdater;
098    }
099
100    public DownloadRemoteIndexTaskRequest setIndexUpdater( IndexUpdater indexUpdater )
101    {
102        this.indexUpdater = indexUpdater;
103        return this;
104    }
105
106    public IndexPacker getIndexPacker()
107    {
108        return indexPacker;
109    }
110
111    public DownloadRemoteIndexTaskRequest setIndexPacker( IndexPacker indexPacker )
112    {
113        this.indexPacker = indexPacker;
114        return this;
115    }
116}