Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2011-04-25 14:04:59,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

The connections settings defines common connection properties, like retries count and timeouts.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "remote-connection-settings" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Connection timeout in milliseconds.
 
     private int connectionTimeout = 0;

    
The retry count before remote connection is declared unsuccesful.
 
     private int retrievalRetryCount = 0;

    
Query string that is appended to remote requests.
 
     private String queryString;

    
User agent string that is used to customize Nexus user agent string user for remote HTTP requests.
 
     private String userAgentString;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Get connection timeout in milliseconds.

Returns:
int
 
     public int getConnectionTimeout()
     {
         return this.;
     } //-- int getConnectionTimeout()
 
    
Get query string that is appended to remote requests.

Returns:
String
 
     public String getQueryString()
     {
         return this.;
     } //-- String getQueryString()
 
    
Get the retry count before remote connection is declared unsuccesful.

Returns:
int
 
     public int getRetrievalRetryCount()
     {
         return this.;
     } //-- int getRetrievalRetryCount()
 
    
Get user agent string that is used to customize Nexus user agent string user for remote HTTP requests.

Returns:
String
 
     public String getUserAgentString()
     {
         return this.;
     } //-- String getUserAgentString()
 
    
Set connection timeout in milliseconds.

Parameters:
connectionTimeout
    public void setConnectionTimeoutint connectionTimeout )
    {
        this. = connectionTimeout;
    } //-- void setConnectionTimeout( int )

    
Set query string that is appended to remote requests.

Parameters:
queryString
    public void setQueryStringString queryString )
    {
        this. = queryString;
    } //-- void setQueryString( String )

    
Set the retry count before remote connection is declared unsuccesful.

Parameters:
retrievalRetryCount
    public void setRetrievalRetryCountint retrievalRetryCount )
    {
        this. = retrievalRetryCount;
    } //-- void setRetrievalRetryCount( int )

    
Set user agent string that is used to customize Nexus user agent string user for remote HTTP requests.

Parameters:
userAgentString
    public void setUserAgentStringString userAgentString )
    {
        this. = userAgentString;
    } //-- void setUserAgentString( String )
New to GrepCode? Check out our FAQ X