Liferay 6.2-ce-ga5

com.liferay.portal.kernel.mail
Class Account

java.lang.Object
  extended by 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

Field Summary
static int PORT_IMAP
           
static int PORT_IMAPS
           
static int PORT_POP
           
static int PORT_POPS
           
static int PORT_SMTP
           
static int PORT_SMTPS
           
static String PROTOCOL_IMAP
           
static String PROTOCOL_IMAPS
           
static String PROTOCOL_POP
           
static String PROTOCOL_POPS
           
static String PROTOCOL_SMTP
           
static String PROTOCOL_SMTPS
           
 
Constructor Summary
protected Account(String protocol, boolean secure, int port)
           
 
Method Summary
 String getHost()
           
static Account getInstance(String protocol)
           
static Account getInstance(String protocol, int port)
           
 String getPassword()
           
 int getPort()
           
 String getProtocol()
           
 String getUser()
           
 boolean isRequiresAuthentication()
           
 boolean isSecure()
           
 void setHost(String host)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Account

protected Account(String protocol,
                  boolean secure,
                  int port)
Method Detail

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)

Liferay 6.2-ce-ga5