|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.mail.CmsMailHost
Contains the configuration of an individual mail host.
Constructor Summary | |
CmsMailHost(java.lang.String hostname,
java.lang.Integer order,
java.lang.String protocol,
java.lang.String username,
java.lang.String password)
Creates a new mail host. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
|
java.lang.String |
getHostname()
Returns the host name. |
java.lang.Integer |
getOrder()
Returns the order of this mail host. |
java.lang.String |
getPassword()
Returns the password used for authentication. |
java.lang.String |
getProtocol()
Returns the protocol used for mail sending, default is "smtp". |
java.lang.String |
getUsername()
Returns the user name used for authentication. |
boolean |
isAuthenticating()
Returns true only if authentication is enabled,
the default is false . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CmsMailHost(java.lang.String hostname, java.lang.Integer order, java.lang.String protocol, java.lang.String username, java.lang.String password)
hostname
- the name of the mail hostorder
- the order in which the host is triedprotocol
- the protocol to use (default "smtp")username
- the user name to use for authenticationpassword
- the password to use for authenticationMethod Detail |
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public java.lang.String getHostname()
public java.lang.Integer getOrder()
public java.lang.String getPassword()
public java.lang.String getProtocol()
public java.lang.String getUsername()
public boolean isAuthenticating()
true
only if authentication is enabled,
the default is false
.
Authentication is enabled only if both "username" and "password"
are not null
.
true
only if authentication is enabledpublic java.lang.String toString()
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |