Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.maven.artifact.repository;
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
Collects basic settings to access the repository system.

Author(s):
Benjamin Bentmann
public interface RepositoryRequest
{

    
Indicates whether network access to remote repositories has been disabled.

Returns:
true if remote access has been disabled, false otherwise.
    boolean isOffline();

    
Enables/disables network access to remote repositories.

Parameters:
offline true to disable remote access, false to allow network access.
Returns:
This request, never null.
    RepositoryRequest setOfflineboolean offline );

    
Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.

Returns:
true if remote repositories should be re-checked for updated artifacts/metadata, false otherwise.
    boolean isForceUpdate();

    
Enables/disabled forced checks for updated artifacts/metadata on remote repositories.

Parameters:
forceUpdate true to forcibly check the remote repositories for updated artifacts/metadata, false to use the update policy configured on each repository.
Returns:
This request, never null.
    RepositoryRequest setForceUpdateboolean forceUpdate );

    
Gets the local repository to use.

Returns:
The local repository to use or null if not set.
Sets the local repository to use.

Parameters:
localRepository The local repository to use.
Returns:
This request, never null.
    RepositoryRequest setLocalRepositoryArtifactRepository localRepository );

    
Gets the remote repositories to use.

Returns:
The remote repositories to use, never null.
Sets the remote repositories to use.

Parameters:
remoteRepositories The remote repositories to use.
Returns:
This request, never null.
New to GrepCode? Check out our FAQ X