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:05:00,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

The smtp settings request.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "smtp-settings-resource" )
 public class SmtpSettingsResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Test email address to send a validation mail to.
 
     private String testEmail;

    
The smtp host.
 
     private String host;

    
The smtp port.
 
     private int port = 0;

    
The smtp username.
 
     private String username;

    
The smtp password.
 
     private String password;

    
The email address that nexus will send emails from.
 
     private String systemEmailAddress;

    
Flag that states whether to use SSL.
 
     private boolean sslEnabled = false;

    
Flag that states whether to use TLS.
 
     private boolean tlsEnabled = false;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Get the smtp host.

Returns:
String
 
     public String getHost()
     {
         return this.;
     } //-- String getHost()
 
    
Get the smtp password.

Returns:
String
 
     public String getPassword()
     {
         return this.;
     } //-- String getPassword()
 
    
Get the smtp port.

Returns:
int
 
     public int getPort()
     {
         return this.;
     } //-- int getPort()

    
Get the email address that nexus will send emails from.

Returns:
String
    public String getSystemEmailAddress()
    {
        return this.;
    } //-- String getSystemEmailAddress()

    
Get test email address to send a validation mail to.

Returns:
String
    public String getTestEmail()
    {
        return this.;
    } //-- String getTestEmail()

    
Get the smtp username.

Returns:
String
    public String getUsername()
    {
        return this.;
    } //-- String getUsername()

    
Get flag that states whether to use SSL.

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

    
Get flag that states whether to use TLS.

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

    
Set the smtp host.

Parameters:
host
    public void setHostString host )
    {
        this. = host;
    } //-- void setHost( String )

    
Set the smtp password.

Parameters:
password
    public void setPasswordString password )
    {
        this. = password;
    } //-- void setPassword( String )

    
Set the smtp port.

Parameters:
port
    public void setPortint port )
    {
        this. = port;
    } //-- void setPort( int )

    
Set flag that states whether to use SSL.

Parameters:
sslEnabled
    public void setSslEnabledboolean sslEnabled )
    {
        this. = sslEnabled;
    } //-- void setSslEnabled( boolean )

    
Set the email address that nexus will send emails from.

Parameters:
systemEmailAddress
    public void setSystemEmailAddressString systemEmailAddress )
    {
        this. = systemEmailAddress;
    } //-- void setSystemEmailAddress( String )

    
Set test email address to send a validation mail to.

Parameters:
testEmail
    public void setTestEmailString testEmail )
    {
        this. = testEmail;
    } //-- void setTestEmail( String )

    
Set flag that states whether to use TLS.

Parameters:
tlsEnabled
    public void setTlsEnabledboolean tlsEnabled )
    {
        this. = tlsEnabled;
    } //-- void setTlsEnabled( boolean )

    
Set the smtp username.

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