|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.transport.TransportProvider
public abstract class TransportProvider
TransportProvider - Provider for mail transport
| Method Summary | |
|---|---|
abstract MailTransport |
createNewMailTransport(com.openexchange.session.Session session)
Gets a newly created mail transport |
abstract MailTransport |
createNewMailTransport(com.openexchange.session.Session session,
int accountId)
Gets a newly created mail transport |
boolean |
equals(java.lang.Object obj)
|
abstract ComposedMailMessage |
getNewComposedMailMessage(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx)
Gets a new instance of ComposedMailMessage |
abstract DataMailPart |
getNewDataPart(java.lang.Object data,
java.util.Map<java.lang.String,java.lang.String> dataProperties,
com.openexchange.session.Session session)
Gets a new instance of DataMailPart |
abstract InfostoreDocumentMailPart |
getNewDocumentPart(java.lang.String documentId,
com.openexchange.session.Session session)
Gets a new instance of InfostoreDocumentMailPart |
abstract UploadFileMailPart |
getNewFilePart(com.openexchange.groupware.upload.UploadFile uploadFile)
Gets a new instance of UploadFileMailPart |
abstract ReferencedMailPart |
getNewReferencedMail(MailMessage referencedMail,
com.openexchange.session.Session session)
Gets a new instance of ReferencedMailPart |
abstract ReferencedMailPart |
getNewReferencedPart(MailPart referencedPart,
com.openexchange.session.Session session)
Gets a new instance of ReferencedMailPart |
abstract TextBodyMailPart |
getNewTextBodyPart(java.lang.String textBody)
Gets a new instance of TextBodyMailPart |
abstract Protocol |
getProtocol()
Gets this transport provider's protocol |
int |
hashCode()
|
boolean |
isDeprecated()
Checks if this provider is deprecated; any cached references should be discarded |
boolean |
supportsProtocol(java.lang.String protocol)
Checks if this transport 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 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 MailTransport createNewMailTransport(com.openexchange.session.Session session)
throws MailException
mail transport
session - The session providing needed user data
mail transport
MailException - If instantiation fails
public abstract MailTransport createNewMailTransport(com.openexchange.session.Session session,
int accountId)
throws MailException
mail transport
session - The session providing needed user dataaccountId - The account ID
mail transport
MailException - If instantiation fails
public abstract ComposedMailMessage getNewComposedMailMessage(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx)
throws MailException
ComposedMailMessage
session - The session for handling temporary uploaded files which shall be added to composed mailctx - The context to load session-related data
ComposedMailMessage
MailException - If a new instance of ComposedMailMessage cannot be created
public abstract UploadFileMailPart getNewFilePart(com.openexchange.groupware.upload.UploadFile uploadFile)
throws MailException
UploadFileMailPart
uploadFile - The upload file
UploadFileMailPart
MailException - If a new instance of UploadFileMailPart cannot be created
public abstract InfostoreDocumentMailPart getNewDocumentPart(java.lang.String documentId,
com.openexchange.session.Session session)
throws MailException
InfostoreDocumentMailPart
documentId - The infostore document's unique IDsession - The session providing needed user data
InfostoreDocumentMailPart
MailException - If a new instance of InfostoreDocumentMailPart cannot be created
public abstract DataMailPart getNewDataPart(java.lang.Object data,
java.util.Map<java.lang.String,java.lang.String> dataProperties,
com.openexchange.session.Session session)
throws MailException
DataMailPart
data - The data obtained by a data sourcedataProperties - The data propertiessession - The session providing needed user data
DataMailPart
MailException - If a new instance of DataMailPart cannot be created
public abstract TextBodyMailPart getNewTextBodyPart(java.lang.String textBody)
throws MailException
TextBodyMailPart
textBody - The text body
TextBodyMailPart
MailException - If a new instance of TextBodyMailPart cannot be created
public abstract ReferencedMailPart getNewReferencedPart(MailPart referencedPart,
com.openexchange.session.Session session)
throws MailException
ReferencedMailPart
referencedPart - The referenced partsession - The session providing user data
ReferencedMailPart
MailException - If a new instance of ReferencedMailPart cannot be created
public abstract ReferencedMailPart getNewReferencedMail(MailMessage referencedMail,
com.openexchange.session.Session session)
throws MailException
ReferencedMailPart
referencedMail - The referenced mailsession - The session providing user data
ReferencedMailPart
MailException - If a new instance of ReferencedMailPart cannot be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||