Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2012-06-01 10:46:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

Proxy repository parameters, extending the repository resource.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "proxy-repository" )
 public class RepositoryProxyResource
     extends RepositoryResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Check the remote file content to see if it is valid. (e.g. not html error page) handy when you cannot enable strict checksum.
 
     private boolean fileTypeValidation = false;

    
The max age of artifacts before we will check remote again for updates (in milliseconds, -1 for never).
 
     private int artifactMaxAge = 0;

    
The max age of metadata before we will check remote again for updated (in milliseconds, -1 for never).
 
     private int metadataMaxAge = 0;

    
Flag that determines is the proxy repository "Auto block" feature active for this repository.
 
     private boolean autoBlockActive = true;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Get the max age of artifacts before we will check remote again for updates (in milliseconds, -1 for never).

Returns:
int
 
     public int getArtifactMaxAge()
     {
         return this.;
     } //-- int getArtifactMaxAge()
 
    
Get the max age of metadata before we will check remote again for updated (in milliseconds, -1 for never).

Returns:
int
 
     public int getMetadataMaxAge()
     {
         return this.;
     } //-- int getMetadataMaxAge()
 
    
Get flag that determines is the proxy repository "Auto block" feature active for this repository.

Returns:
boolean
 
     public boolean isAutoBlockActive()
     {
         return this.;
     } //-- boolean isAutoBlockActive()
 
    
Get check the remote file content to see if it is valid. (e.g. not html error page) handy when you cannot enable strict checksum.

Returns:
boolean
 
     public boolean isFileTypeValidation()
     {
         return this.;
    } //-- boolean isFileTypeValidation()

    
Set the max age of artifacts before we will check remote again for updates (in milliseconds, -1 for never).

Parameters:
artifactMaxAge
    public void setArtifactMaxAgeint artifactMaxAge )
    {
        this. = artifactMaxAge;
    } //-- void setArtifactMaxAge( int )

    
Set flag that determines is the proxy repository "Auto block" feature active for this repository.

Parameters:
autoBlockActive
    public void setAutoBlockActiveboolean autoBlockActive )
    {
        this. = autoBlockActive;
    } //-- void setAutoBlockActive( boolean )

    
Set check the remote file content to see if it is valid. (e.g. not html error page) handy when you cannot enable strict checksum.

Parameters:
fileTypeValidation
    public void setFileTypeValidationboolean fileTypeValidation )
    {
        this. = fileTypeValidation;
    } //-- void setFileTypeValidation( boolean )

    
Set the max age of metadata before we will check remote again for updated (in milliseconds, -1 for never).

Parameters:
metadataMaxAge
    public void setMetadataMaxAgeint metadataMaxAge )
    {
        this. = metadataMaxAge;
    } //-- void setMetadataMaxAge( int )
New to GrepCode? Check out our FAQ X