Class EmailServer
java.lang.Object
com.elpical.jclaro.admin.ws.server.EmailServer
Class holds information about access to the SMTP Email server
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor for Email SMP settingsEmailServer(String server, String user, String password, boolean ssl, int sslPort)
Constructor for Email SMP settings -
Method Summary
Modifier and TypeMethodDescriptionReturns the SMTP passwordReturns the SMTP hostnameint
Returns the TCPIP port number to use for SSL communicationgetUser()
Returns the SMTP usernameboolean
isSsl()
Returns whether to use SSL for the communicationvoid
setPassword(String password)
Sets the SMTP passwordvoid
Sets the SMTP hostnamevoid
setSsl(boolean ssl)
Sets whether to use SSL for the communicationvoid
setSslPort(int sslPort)
Sets the TCPIP port number to use for SSL communicationvoid
Sets the SMTP username
-
Constructor Details
-
EmailServer
public EmailServer()Empty constructor for Email SMP settings -
EmailServer
Constructor for Email SMP settings- Parameters:
server
- The server host nameuser
- The username for the SMTP server (optional)password
- The password for the SMTP server (optional)ssl
- Whether to use SFTP of FTPsslPort
- If SSL is to be used which TCPIP port number to use
-
-
Method Details
-
getServer
Returns the SMTP hostname- Returns:
- The SMTP hostname
-
setServer
Sets the SMTP hostname- Parameters:
server
- The SMTP hostname
-
getUser
Returns the SMTP username- Returns:
- The SMTP username
-
setUser
Sets the SMTP username- Parameters:
user
- The SMTP username
-
getPassword
Returns the SMTP password- Returns:
- The SMTP password
-
setPassword
Sets the SMTP password- Parameters:
password
- The SMTP password
-
isSsl
public boolean isSsl()Returns whether to use SSL for the communication- Returns:
- Whether to use SSL for the communication
-
setSsl
public void setSsl(boolean ssl)Sets whether to use SSL for the communication- Parameters:
ssl
- Whether to use SSL for the communication
-
getSslPort
public int getSslPort()Returns the TCPIP port number to use for SSL communication- Returns:
- The TCPIP port number to use for SSL communication
-
setSslPort
public void setSslPort(int sslPort)Sets the TCPIP port number to use for SSL communication- Parameters:
sslPort
- The TCPIP port number to use for SSL communication
-