public class EmailAccount extends Object
Constructor and Description |
---|
EmailAccount()
Create a new EmailAccount.
|
EmailAccount(String filename)
Create a new EmailAccount.
|
EmailAccount(String user,
String password,
String sender,
String smtphost,
Integer smtpport,
boolean ssl,
boolean starttls,
String receivehost,
String receiveprotocol)
Create a new account.
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Get the password.
|
String |
getReceiveHost()
Get the receivehost.
|
String |
getReceiveProtocol()
Get the receiveprotocol.
|
String |
getSender()
Get the sender.
|
String |
getSmtpHost()
Get host.
|
Integer |
getSmtpPort()
Get the port.
|
String |
getUser()
Get the user.
|
boolean |
isSsl()
Is ssl connection?
|
boolean |
isStartTls()
Get the starttls.
|
void |
readAccount(String filename)
Read account data from property file.
|
void |
setPassword(String password)
Set the password.
|
void |
setReceiveHost(String receivehost)
Set the receivehost.
|
void |
setReceiveProtocol(String receiveprotocol)
Set the receiveprotocol.
|
void |
setSender(String sender)
Set the sender.
|
void |
setSmtpHost(String host)
Set the host.
|
void |
setSmtpPort(Integer port)
Set the port.
|
void |
setSsl(boolean ssl)
Set the ssl connection property.
|
void |
setStartTls(boolean starttls)
Set the starttls.
|
void |
setUser(String user)
Set the user.
|
void |
writeAccount(String filename)
Store data to a property file.
|
public EmailAccount()
public EmailAccount(String filename)
public EmailAccount(String user, String password, String sender, String smtphost, Integer smtpport, boolean ssl, boolean starttls, String receivehost, String receiveprotocol)
smtphost
- The smtp host.port
- The smtp port.user
- The user name.password
- The password.sender
- The sender email.ssl
- Flag for ssl.public String getSmtpHost()
public void setSmtpHost(String host)
host
- The host.public Integer getSmtpPort()
public void setSmtpPort(Integer port)
port
- The port.public String getUser()
public void setUser(String user)
user
- The user.public String getPassword()
public void setPassword(String password)
password
- The password.public String getSender()
public void setSender(String sender)
sender
- The sender.public boolean isSsl()
public void setSsl(boolean ssl)
ssl
- Flag indicating ssl.public boolean isStartTls()
public void setStartTls(boolean starttls)
starttls
- The starttls to set.public String getReceiveHost()
public void setReceiveHost(String receivehost)
receivehost
- The receivehost to set.public String getReceiveProtocol()
public void setReceiveProtocol(String receiveprotocol)
receiveprotocol
- The receiveprotocol to set.public void writeAccount(String filename)
public void readAccount(String filename)
Copyright © 2012. All Rights Reserved.