|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.mail.CmsMailHost
public class CmsMailHost
Contains the configuration of an individual mail host.
Constructor Summary | |
---|---|
CmsMailHost(String hostname,
Integer port,
Integer order,
String protocol,
String username,
String password)
Creates a new mail host. |
Method Summary | |
---|---|
int |
compareTo(CmsMailHost obj)
|
boolean |
equals(Object obj)
|
String |
getHostname()
Returns the host name. |
Integer |
getOrder()
Returns the order of this mail host. |
String |
getPassword()
Returns the password used for authentication. |
int |
getPort()
Returns the port. |
String |
getProtocol()
Returns the protocol used for mail sending, default is "smtp". |
String |
getUsername()
Returns the user name used for authentication. |
int |
hashCode()
|
boolean |
isAuthenticating()
Returns true only if authentication is enabled,
the default is false . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CmsMailHost(String hostname, Integer port, Integer order, String protocol, String username, 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 authenticationport
- the port, if < 0 then 25 is usedMethod Detail |
---|
public int compareTo(CmsMailHost obj)
compareTo
in interface Comparable<CmsMailHost>
Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String getHostname()
public Integer getOrder()
public String getPassword()
public int getPort()
public String getProtocol()
public String getUsername()
public int hashCode()
hashCode
in class Object
Object.hashCode()
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 String toString()
toString
in class Object
Object.toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |