public abstract class Account
extends Object
implements Serializable
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
Account(String protocol,
boolean secure,
int port) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int PORT_IMAP
public static final int PORT_IMAPS
public static final int PORT_POP
public static final int PORT_POPS
public static final int PORT_SMTP
public static final int PORT_SMTPS
public static final String PROTOCOL_IMAP
public static final String PROTOCOL_IMAPS
public static final String PROTOCOL_POP
public static final String PROTOCOL_POPS
public static final String PROTOCOL_SMTP
public static final String PROTOCOL_SMTPS
public static Account getInstance(String protocol)
public static Account getInstance(String protocol, int port)
public String getHost()
public String getPassword()
public int getPort()
public String getProtocol()
public String getUser()
public boolean isRequiresAuthentication()
public boolean isSecure()
public void setHost(String host)
public void setPassword(String password)
public void setPort(int port)
public void setUser(String user)