|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.parser.handlers.InlineContentHandler
public final class InlineContentHandler
InlineContentHandler - Finds matching inline parts to given content IDs
| Constructor Summary | |
|---|---|
InlineContentHandler(java.util.List<java.lang.String> cids)
Constructor |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,MailPart> |
getInlineContents()
Gets the found inline contents corresponding to given content IDs. |
boolean |
handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
Handle an attachment part (any non-inline parts and file attachments) |
boolean |
handleBccRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
Handle the 'Bcc' recipient message header |
boolean |
handleCcRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
Handle the 'Cc' recipient message header |
boolean |
handleColorLabel(int colorLabel)
Handle message's color label |
boolean |
handleContentId(java.lang.String contentId)
Handle content id |
boolean |
handleDispositionNotification(javax.mail.internet.InternetAddress dispositionNotificationTo,
boolean seen)
Handle message's disposition notification |
boolean |
handleFrom(javax.mail.internet.InternetAddress[] fromAddrs)
Handle the 'From' message header |
boolean |
handleHeaders(int size,
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iter)
Handle those message headers which cannot be handled through a handleXXX method |
boolean |
handleImagePart(MailPart part,
java.lang.String imageCIDArg,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id)
Handle an image part ( image/*) |
boolean |
handleInlineHtml(java.lang.String htmlContent,
ContentType contentType,
long size,
java.lang.String fileName,
java.lang.String id)
Handle a html inline part ( text/html) |
boolean |
handleInlinePlainText(java.lang.String plainTextContent,
ContentType contentType,
long size,
java.lang.String fileName,
java.lang.String id)
Handle a plain text inline part (either text/plain or text/enriched) |
boolean |
handleInlineUUEncodedAttachment(UUEncodedPart part,
java.lang.String id)
Handle a UUEncoded file attachment inline part |
boolean |
handleInlineUUEncodedPlainText(java.lang.String decodedTextContent,
ContentType contentType,
int size,
java.lang.String fileName,
java.lang.String id)
Handle a UUEncoded plain text inline part |
void |
handleMessageEnd(MailMessage mail)
Perform some optional finishing operations |
boolean |
handleMsgRef(java.lang.String msgRef)
Handle referenced mail |
boolean |
handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id)
Handle a multipart ( multipart/*) |
boolean |
handleNestedMessage(MailPart mailPart,
java.lang.String id)
Handle a nested message ( message/rfc822)
Get the message via:
MailMessage nestedMail = (MailMessage) mailPart.getContent();
|
boolean |
handlePriority(int priority)
Handle message's priority |
boolean |
handleReceivedDate(java.util.Date receivedDate)
Handle message's received date |
boolean |
handleSentDate(java.util.Date sentDate)
Handle message's sent date |
boolean |
handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
Handle special parts. |
boolean |
handleSubject(java.lang.String subject)
Handle message's subject |
boolean |
handleSystemFlags(int flags)
Handle message's system flags (//SEEN, //ANSWERED, ...) |
boolean |
handleToRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
Handle the 'To' recipient message header |
boolean |
handleUserFlags(java.lang.String[] userFlags)
Handle message's user flags |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InlineContentHandler(java.util.List<java.lang.String> cids)
cids - The content IDs of the inline parts| Method Detail |
|---|
public java.util.Map<java.lang.String,MailPart> getInlineContents()
null.
public boolean handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandler
handleAttachment in interface MailMessageHandlerMailException
public boolean handleBccRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
throws MailException
MailMessageHandler
handleBccRecipient in interface MailMessageHandlerMailException
public boolean handleCcRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
throws MailException
MailMessageHandler
handleCcRecipient in interface MailMessageHandlerMailException
public boolean handleColorLabel(int colorLabel)
throws MailException
MailMessageHandler
handleColorLabel in interface MailMessageHandlerMailException
public boolean handleContentId(java.lang.String contentId)
throws MailException
MailMessageHandler
handleContentId in interface MailMessageHandlerMailException
public boolean handleDispositionNotification(javax.mail.internet.InternetAddress dispositionNotificationTo,
boolean seen)
throws MailException
MailMessageHandler
handleDispositionNotification in interface MailMessageHandlerseen - TODO
MailException
public boolean handleFrom(javax.mail.internet.InternetAddress[] fromAddrs)
throws MailException
MailMessageHandler
handleFrom in interface MailMessageHandlerMailException
public boolean handleHeaders(int size,
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iter)
throws MailException
MailMessageHandlerhandleXXX method
handleHeaders in interface MailMessageHandlersize - The iterator's size or -1 to use Iterator.hasNext() insteaditer - The header iterator
true to continue parsing; otherwise false
MailException
public boolean handleImagePart(MailPart part,
java.lang.String imageCIDArg,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandlerimage/*)
handleImagePart in interface MailMessageHandlerMailException
public boolean handleInlineHtml(java.lang.String htmlContent,
ContentType contentType,
long size,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandlertext/html)
handleInlineHtml in interface MailMessageHandlerMailException
public boolean handleInlinePlainText(java.lang.String plainTextContent,
ContentType contentType,
long size,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandlertext/plain or text/enriched)
handleInlinePlainText in interface MailMessageHandlerMailException
public boolean handleInlineUUEncodedAttachment(UUEncodedPart part,
java.lang.String id)
throws MailException
MailMessageHandler
handleInlineUUEncodedAttachment in interface MailMessageHandlerMailException
public boolean handleInlineUUEncodedPlainText(java.lang.String decodedTextContent,
ContentType contentType,
int size,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandler
handleInlineUUEncodedPlainText in interface MailMessageHandlerMailException
public void handleMessageEnd(MailMessage mail)
throws MailException
MailMessageHandler
handleMessageEnd in interface MailMessageHandlerMailException
public boolean handleMsgRef(java.lang.String msgRef)
throws MailException
MailMessageHandler
handleMsgRef in interface MailMessageHandlerMailException
public boolean handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id)
throws MailException
MailMessageHandlermultipart/*)
handleMultipart in interface MailMessageHandlerMailException
public boolean handleNestedMessage(MailPart mailPart,
java.lang.String id)
throws MailException
MailMessageHandlermessage/rfc822)
Get the message via:
MailMessage nestedMail = (MailMessage) mailPart.getContent();
handleNestedMessage in interface MailMessageHandlerMailException
public boolean handlePriority(int priority)
throws MailException
MailMessageHandler
handlePriority in interface MailMessageHandlerMailException
public boolean handleReceivedDate(java.util.Date receivedDate)
throws MailException
MailMessageHandler
handleReceivedDate in interface MailMessageHandlerMailException
public boolean handleSentDate(java.util.Date sentDate)
throws MailException
MailMessageHandler
handleSentDate in interface MailMessageHandlerMailException
public boolean handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
throws MailException
MailMessageHandlermessage/delivery-status,
message/disposition-notification, text/rfc822-headers, text/x-vcard, text/vcard,
text/calendar or text/x-vCalendar
handleSpecialPart in interface MailMessageHandlerMailException
public boolean handleSubject(java.lang.String subject)
throws MailException
MailMessageHandler
handleSubject in interface MailMessageHandlerMailException
public boolean handleSystemFlags(int flags)
throws MailException
MailMessageHandler
handleSystemFlags in interface MailMessageHandlerMailException
public boolean handleToRecipient(javax.mail.internet.InternetAddress[] recipientAddrs)
throws MailException
MailMessageHandler
handleToRecipient in interface MailMessageHandlerMailException
public boolean handleUserFlags(java.lang.String[] userFlags)
throws MailException
MailMessageHandler
handleUserFlags in interface MailMessageHandlerMailException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||