railo.runtime.net.mail
Class ServerImpl

java.lang.Object
  extended by railo.runtime.net.mail.ServerImpl
All Implemented Interfaces:
Server

public final class ServerImpl
extends Object
implements Server


Field Summary
 
Fields inherited from interface railo.runtime.net.mail.Server
DEFAULT_PORT
 
Constructor Summary
ServerImpl(String hostName, int port, String username, String password, boolean tls, boolean ssl)
           
 
Method Summary
 Server cloneReadOnly()
           
 String getHostName()
           
static ServerImpl getInstance(String host, int defaultPort, String defaultUsername, String defaultPassword, boolean defaultTls, boolean defaultSsl)
           
 String getPassword()
           
 int getPort()
           
 String getUsername()
           
 boolean hasAuthentication()
           
 boolean isReadOnly()
           
 boolean isSSL()
           
 boolean isTLS()
           
 void setSSL(boolean ssl)
           
 void setTLS(boolean tls)
           
 String toString()
           
 boolean verify()
          verify the server properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerImpl

public ServerImpl(String hostName,
                  int port,
                  String username,
                  String password,
                  boolean tls,
                  boolean ssl)
Method Detail

getInstance

public static ServerImpl getInstance(String host,
                                     int defaultPort,
                                     String defaultUsername,
                                     String defaultPassword,
                                     boolean defaultTls,
                                     boolean defaultSsl)
                              throws MailException
Throws:
MailException

getPassword

public String getPassword()
Specified by:
getPassword in interface Server
Returns:
Returns the password.

getPort

public int getPort()
Specified by:
getPort in interface Server
Returns:
Returns the port.

getHostName

public String getHostName()
Specified by:
getHostName in interface Server
Returns:
Returns the server.

getUsername

public String getUsername()
Specified by:
getUsername in interface Server
Returns:
Returns the username.

hasAuthentication

public boolean hasAuthentication()
Specified by:
hasAuthentication in interface Server
Returns:
if has a authenatication or not

toString

public String toString()
Overrides:
toString in class Object

cloneReadOnly

public Server cloneReadOnly()
Specified by:
cloneReadOnly in interface Server
Returns:
clone the DataSource as ReadOnly

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface Server
Returns:
Returns the readOnly.

verify

public boolean verify()
               throws SMTPException
Description copied from interface: Server
verify the server properties

Specified by:
verify in interface Server
Returns:
is ok
Throws:
SMTPException

isTLS

public boolean isTLS()
Specified by:
isTLS in interface Server
Returns:
is tls

isSSL

public boolean isSSL()
Specified by:
isSSL in interface Server
Returns:
is ssl

setSSL

public void setSSL(boolean ssl)

setTLS

public void setTLS(boolean tls)


Copyright © 2012 Railo