|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.api.MailProvider
public abstract class MailProvider
MailProvider - The main intention of the provider class is to make the implementing classes available which define the abstract
classes of mail API.
| Method Summary | |
|---|---|
abstract MailAccess<?,?> |
createNewMailAccess(com.openexchange.session.Session session)
Gets a newly created mail access with default account ID. |
abstract MailAccess<? extends IMailFolderStorage,? extends IMailMessageStorage> |
createNewMailAccess(com.openexchange.session.Session session,
int accountId)
Gets a newly created mail access. |
MailPermission |
createNewMailPermission()
Gets a newly created mail permission. |
boolean |
equals(java.lang.Object obj)
|
abstract Protocol |
getProtocol()
Gets this mail provider's protocol |
AbstractProtocolProperties |
getProtocolProps()
Gets the protocol properties |
com.openexchange.spamhandler.SpamHandler |
getSpamHandler()
Gets the spam handler used by this mail provider. |
int |
hashCode()
|
boolean |
isDeprecated()
Checks if this provider is deprecated; any cached references should be discarded |
void |
setDeprecated(boolean deprecated)
Sets the deprecated flag |
void |
shutDown()
Performs provider's shut-down |
void |
startUp()
Performs provider's start-up |
boolean |
supportsProtocol(java.lang.String protocol)
Checks if this mail provider supports the given protocol (which is either in secure or non-secure notation). |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic boolean isDeprecated()
true if deprecated; otherwise falsepublic void setDeprecated(boolean deprecated)
deprecated - true if deprecated; otherwise false
public void startUp()
throws MailException
MailException - If start-up fails
public void shutDown()
throws MailException
MailException - if shut-down failspublic MailPermission createNewMailPermission()
mail permission.
Returns a default permission instance if mailing system does not support permission(s). Overwrite if
needed.
mail permission.public com.openexchange.spamhandler.SpamHandler getSpamHandler()
public abstract Protocol getProtocol()
public final boolean supportsProtocol(java.lang.String protocol)
This is a convenience method that invokes Protocol.isSupported(String)
protocol - The protocol
true if supported; otherwise false
public abstract MailAccess<?,?> createNewMailAccess(com.openexchange.session.Session session)
throws MailException
mail access with default account ID.
If specified session is null, a dummy instance for initialization purpose is supposed to be returned. Implementation may
return null in this case if no start-up/shut-down actions are needed.
session - The session providing needed user data; may be null to obtain a dummy instance for initialization purpose
mail access.
MailException - If new mail access instance cannot be created
public abstract MailAccess<? extends IMailFolderStorage,? extends IMailMessageStorage> createNewMailAccess(com.openexchange.session.Session session,
int accountId)
throws MailException
mail access.
If specified session is null, a dummy instance for initialization purpose is supposed to be returned. Implementation may
return null in this case if no start-up/shut-down actions are needed.
session - The session providing needed user data; may be null to obtain a dummy instance for initialization purposeaccountId - The account ID
mail access.
MailException - If new mail access instance cannot be createdpublic AbstractProtocolProperties getProtocolProps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||