|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.service.util.handler.AbstractMessageHandler com.atlassian.jira.service.util.handler.AbstractCommentHandler com.atlassian.jira.service.util.handler.FullCommentHandler
public class FullCommentHandler
Field Summary |
---|
Fields inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler |
---|
applicationProperties, bulk, catchEmail, commentManager, CONTENT_TYPE_TEXT, createUsers, deleteEmail, HEADER_IN_REPLY_TO, HEADER_MESSAGE_ID, issueFactory, KEY_BULK, KEY_CATCHEMAIL, KEY_CREATEUSERS, KEY_FINGER_PRINT, KEY_NOTIFYUSERS, KEY_REPORTER, notifyUsers, params, reporteruserName |
Constructor Summary | |
---|---|
FullCommentHandler()
|
Method Summary | |
---|---|
protected boolean |
attachHtmlParts(javax.mail.Part part)
Comments never wish to keep html parts that are not attachments as they extract the plain text part and use that as the content. |
protected boolean |
attachPlainTextParts(javax.mail.Part part)
Plain text parts must be kept if they arent empty. |
protected java.lang.String |
getEmailBody(javax.mail.Message message)
Given a message - this handler will add the entire message body as a comment to the first issue referenced in the subject. |
Methods inherited from class com.atlassian.jira.service.util.handler.AbstractCommentHandler |
---|
getEventTypeId, handleMessage |
Methods inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler |
---|
addError, addError, addErrorAndReturnFalse, addErrorAndReturnFalse, attachAttachmentsParts, attachInlineParts, attachMessagePart, attachRelatedPart, canHandleMessage, createAttachmentsForMessage, createAttachmentWithPart, createUserForReporter, findUserByEmail, findUserByUsername, getAssociatedIssue, getErrorHandler, getFileFromPart, getFilenameForAttachment, getI18nBean, getPrecedenceHeader, getReporter, init, isAutoSubmitted, isDeliveryStatus, recordMessageId, renameFileIfInvalid, setErrorHandler, shouldAttach |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullCommentHandler()
Method Detail |
---|
protected java.lang.String getEmailBody(javax.mail.Message message) throws javax.mail.MessagingException
getEmailBody
in class AbstractCommentHandler
javax.mail.MessagingException
protected boolean attachPlainTextParts(javax.mail.Part part) throws javax.mail.MessagingException, java.io.IOException
attachPlainTextParts
in class AbstractMessageHandler
part
- The plain text part.
javax.mail.MessagingException
- if javamail complains
java.io.IOException
- if javamail complainsprotected boolean attachHtmlParts(javax.mail.Part part) throws javax.mail.MessagingException, java.io.IOException
attachHtmlParts
in class AbstractMessageHandler
part
- The html part being processed.
javax.mail.MessagingException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |