public final class PublishAttachmentHandler extends AbstractAttachmentHandler
PublishAttachmentHandler - An attachment handler that publishes attachments on exceeded quota (either
overall or per-file quota).| Constructor and Description |
|---|
PublishAttachmentHandler(com.openexchange.session.Session session,
TransportProvider transportProvider,
java.lang.String protocol,
java.lang.String hostName)
Initializes a new
PublishAttachmentHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(MailPart attachment)
Adds specified attachment.
|
ComposedMailMessage[] |
generateComposedMails(ComposedMailMessage source,
java.util.List<com.openexchange.exception.OXException> warnings)
Generates composed mails.
|
void |
setTextPart(TextBodyMailPart textPart)
Sets the text part which may be modified.
|
public PublishAttachmentHandler(com.openexchange.session.Session session,
TransportProvider transportProvider,
java.lang.String protocol,
java.lang.String hostName)
throws com.openexchange.exception.OXException
PublishAttachmentHandler.session - The session providing needed user informationtransportProvider - The transport providerprotocol - The server's protocolhostName - The server's host namecom.openexchange.exception.OXException - If initialization failspublic void setTextPart(TextBodyMailPart textPart)
IAttachmentHandlertextPart - The text part to setpublic void addAttachment(MailPart attachment) throws com.openexchange.exception.OXException
IAttachmentHandlerattachment - The attachment to addcom.openexchange.exception.OXException - Depending on implementation it may indicate an exceeded quota, but other errors as wellpublic ComposedMailMessage[] generateComposedMails(ComposedMailMessage source, java.util.List<com.openexchange.exception.OXException> warnings) throws com.openexchange.exception.OXException
IAttachmentHandlersource - The source composed mailcom.openexchange.exception.OXException - If an error occurs while filling mail