com.liferay.portal.kernel.mail
Class Account
java.lang.Object
com.liferay.portal.kernel.mail.Account
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- IMAPAccount, POPAccount, SMTPAccount
public abstract class Account
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Constructor Summary |
protected |
Account(String protocol,
boolean secure,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT_IMAP
public static final int PORT_IMAP
- See Also:
- Constant Field Values
PORT_IMAPS
public static final int PORT_IMAPS
- See Also:
- Constant Field Values
PORT_POP
public static final int PORT_POP
- See Also:
- Constant Field Values
PORT_POPS
public static final int PORT_POPS
- See Also:
- Constant Field Values
PORT_SMTP
public static final int PORT_SMTP
- See Also:
- Constant Field Values
PORT_SMTPS
public static final int PORT_SMTPS
- See Also:
- Constant Field Values
PROTOCOL_IMAP
public static final String PROTOCOL_IMAP
- See Also:
- Constant Field Values
PROTOCOL_IMAPS
public static final String PROTOCOL_IMAPS
- See Also:
- Constant Field Values
PROTOCOL_POP
public static final String PROTOCOL_POP
- See Also:
- Constant Field Values
PROTOCOL_POPS
public static final String PROTOCOL_POPS
- See Also:
- Constant Field Values
PROTOCOL_SMTP
public static final String PROTOCOL_SMTP
- See Also:
- Constant Field Values
PROTOCOL_SMTPS
public static final String PROTOCOL_SMTPS
- See Also:
- Constant Field Values
Account
protected Account(String protocol,
boolean secure,
int port)
getInstance
public static Account getInstance(String protocol)
getInstance
public static Account getInstance(String protocol,
int port)
getHost
public String getHost()
getPassword
public String getPassword()
getPort
public int getPort()
getProtocol
public String getProtocol()
getUser
public String getUser()
isRequiresAuthentication
public boolean isRequiresAuthentication()
isSecure
public boolean isSecure()
setHost
public void setHost(String host)
setPassword
public void setPassword(String password)
setPort
public void setPort(int port)
setUser
public void setUser(String user)