Package de.aservo.confapi.commons.model
Class AbstractMailServerProtocolBean
java.lang.Object
de.aservo.confapi.commons.model.AbstractMailServerProtocolBean
- Direct Known Subclasses:
MailServerPopBean,MailServerSmtpBean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn set timeout or default timeout of 10000L if null.voidsetPort(int port) Make sure port can be set from an int and from a String value.voidMake sure port can be set from an int and from a String value.voidsetProtocol(String protocol) Make sure always to set protocol in lowercase format.
-
Field Details
-
DEFAULT_TIMEOUT
-
-
Constructor Details
-
AbstractMailServerProtocolBean
public AbstractMailServerProtocolBean()
-
-
Method Details
-
setPort
public void setPort(int port) Make sure port can be set from an int and from a String value.- Parameters:
port- the port
-
setPort
Make sure port can be set from an int and from a String value.- Parameters:
port- the port
-
setProtocol
Make sure always to set protocol in lowercase format.- Parameters:
protocol- the protocol
-
getTimeout
Return set timeout or default timeout of 10000L if null.- Returns:
- timeout
-