Package de.adrianlange.mcd.model.impl
Class AbstractMailserverService
- java.lang.Object
-
- de.adrianlange.mcd.model.impl.AbstractMailserverService
-
- All Implemented Interfaces:
MailserverService
- Direct Known Subclasses:
MozillaAutoconfMailserverServiceImpl,SrvRecordMailserverServiceImpl
public abstract class AbstractMailserverService extends Object implements MailserverService
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMailserverService(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationMethodgetConfigurationMethod()Returns the configuration method over which the mailserver configuration has been discovered.StringgetHost()Host URL of the mailserver service.IntegergetPort()Port of the mailserver service.ProtocolgetProtocol()Returns the protocol of the mailserver service.SocketTypegetSocketType()Returns the socket type od the mailserver configuration.voidsetConfigurationMethod(ConfigurationMethod configurationMethod)voidsetHost(String host)voidsetPort(Integer port)voidsetProtocol(Protocol protocol)voidsetSocketType(SocketType socketType)StringtoString()
-
-
-
Constructor Detail
-
AbstractMailserverService
protected AbstractMailserverService(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port)
-
-
Method Detail
-
getProtocol
public Protocol getProtocol()
Description copied from interface:MailserverServiceReturns the protocol of the mailserver service. This can be SMTP for submission or IMAP or POP3 for reception.- Specified by:
getProtocolin interfaceMailserverService- Returns:
- protocol of the mailserver service
-
setProtocol
public void setProtocol(Protocol protocol)
-
getSocketType
public SocketType getSocketType()
Description copied from interface:MailserverServiceReturns the socket type od the mailserver configuration. This can eiter be PLAIN, STARTTLS or SSL.- Specified by:
getSocketTypein interfaceMailserverService- Returns:
- Socket type of the service or
nullif unknown
-
setSocketType
public void setSocketType(SocketType socketType)
-
getHost
public String getHost()
Description copied from interface:MailserverServiceHost URL of the mailserver service.- Specified by:
getHostin interfaceMailserverService- Returns:
- Host URL. May be
nullif this configuration should not be used / the protocol is not supported!
-
setHost
public void setHost(String host)
-
getPort
public Integer getPort()
Description copied from interface:MailserverServicePort of the mailserver service.- Specified by:
getPortin interfaceMailserverService- Returns:
- Port. May be
nullif this configuration should not be used / the protocol is not supported!
-
setPort
public void setPort(Integer port)
-
getConfigurationMethod
public ConfigurationMethod getConfigurationMethod()
Description copied from interface:MailserverServiceReturns the configuration method over which the mailserver configuration has been discovered.- Specified by:
getConfigurationMethodin interfaceMailserverService- Returns:
- Mailserver configuration.
-
setConfigurationMethod
public void setConfigurationMethod(ConfigurationMethod configurationMethod)
-
-