Package de.adrianlange.mcd.model.impl
Class AbstractMailserverService
java.lang.Object
de.adrianlange.mcd.model.impl.AbstractMailserverService
- All Implemented Interfaces:
MailserverService
- Direct Known Subclasses:
SrvRecordMailserverServiceImpl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMailserverService(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port) -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration method over which the mailserver configuration has been discovered.getHost()Host URL of the mailserver service.getPort()Port of the mailserver service.Priority of the mailserver service.Returns the protocol of the mailserver service.Returns the socket type od the mailserver configuration.voidsetConfigurationMethod(ConfigurationMethod configurationMethod) voidvoidvoidsetPriority(Integer priority) voidsetProtocol(Protocol protocol) voidsetSocketType(SocketType socketType) toString()
-
Constructor Details
-
AbstractMailserverService
protected AbstractMailserverService(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port)
-
-
Method Details
-
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
-
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
-
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
-
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
-
getPriority
Description copied from interface:MailserverServicePriority of the mailserver service. A service with a smaller priority should be preferred over a service with a larger priority. This also applies across protocols, for example, it can be made clear that the connection via IMAP should be preferred to one via POP3.- Specified by:
getPriorityin interfaceMailserverService- Returns:
- Priority of the mailserver service or
nullif not specified
-
setPriority
-
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
-
toString
-