Package com.atlassian.confluence.mail
Interface InboundMailServer
-
- All Superinterfaces:
com.atlassian.mail.server.MailServer
- All Known Implementing Classes:
ConfluenceImapMailServer,ConfluencePopMailServer
public interface InboundMailServer extends com.atlassian.mail.server.MailServerDefines the contract for an inbound mail server.- Since:
- 8.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable AuthorizationgetAuthorization()Returns the currently registeredAuthorizationif ones configured, otherwise null.StringgetToAddress()Gets the Address which will be monitored for inbound email.default booleanisBasicAuth()Returns whether thisMailServeris configured to use BasicAuth or not.voidsetAuthorization(@Nullable Authorization authorization)Register anAuthorizationto use when retrieving email from thisMailServervoidsetToAddress(String toAddress)Sets the Address which will be monitored for inbound email.-
Methods inherited from interface com.atlassian.mail.server.MailServer
getDebug, getDescription, getHostname, getId, getMailProtocol, getName, getPassword, getPort, getProperties, getSession, getSocksHost, getSocksPort, getTimeout, getType, getUsername, isTlsHostnameCheckRequired, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsHostnameCheckRequired, setUsername
-
-
-
-
Method Detail
-
getToAddress
String getToAddress()
Gets the Address which will be monitored for inbound email.- Returns:
- email address
-
setToAddress
void setToAddress(String toAddress)
Sets the Address which will be monitored for inbound email.- Parameters:
toAddress-
-
getAuthorization
@Nullable Authorization getAuthorization()
Returns the currently registeredAuthorizationif ones configured, otherwise null.- Returns:
Authorization
-
setAuthorization
void setAuthorization(@Nullable Authorization authorization)
Register anAuthorizationto use when retrieving email from thisMailServer- Parameters:
authorization- AnAuthorizationmethodology e.g. OAuth 2.0
-
isBasicAuth
default boolean isBasicAuth()
Returns whether thisMailServeris configured to use BasicAuth or not.- Returns:
- see description
-
-