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-04-27 06:11:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

The connections settings for an smtp server.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "smtp-settings" )
 public class SmtpSettings
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The smtp host.
 
     private String host;

    
The smtp port.
 
     private int port = 0;

    
The smtp server username.
 
     private String username;

    
The smtp server password.
 
     private String password;

    
The email address that emails will be sent 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 server 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 emails will be sent from.

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

    
Get the smtp server 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 server 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 emails will be sent from.

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

    
Set flag that states whether to use tls.

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

    
Set the smtp server username.

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