com.atlassian.jira.service.util.handler
Class CVSLogHandler

java.lang.Object
  extended bycom.atlassian.jira.service.util.handler.AbstractMessageHandler
      extended bycom.atlassian.jira.service.util.handler.CVSLogHandler
All Implemented Interfaces:
MessageHandler

public class CVSLogHandler
extends AbstractMessageHandler


Field Summary
 
Fields inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler
bulk, catchEmail, CONTENT_TYPE_PKCS7, CONTENT_TYPE_TEXT, createUsers, deleteEmail, KEY_BULK, KEY_CATCHEMAIL, KEY_CREATEUSERS, KEY_NOTIFYUSERS, KEY_REPORTER, notifyUsers, params, reporteruserName
 
Constructor Summary
CVSLogHandler()
           
 
Method Summary
 String getCommentArea(String messageBody)
          Get the actual comment text from a CVS log email.
 boolean handleMessage(javax.mail.Message message)
          Perform the specific work of this handler for the given message.
 
Methods inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler
addError, addError, addErrorAndReturnFalse, addErrorAndReturnFalse, canHandleMessage, createAttachmentsForMessage, createAttachmentWithPart, getAssociatedIssue, getErrorHandler, getFileFromPart, getI18nBean, getPrecedenceHeader, getReporter, init, recordMessageId, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSLogHandler

public CVSLogHandler()
Method Detail

handleMessage

public boolean handleMessage(javax.mail.Message message)
                      throws javax.mail.MessagingException
Description copied from class: AbstractMessageHandler
Perform the specific work of this handler for the given message.

Specified by:
handleMessage in interface MessageHandler
Specified by:
handleMessage in class AbstractMessageHandler
Returns:
true if the message is to be deleted from the source.
Throws:
javax.mail.MessagingException - if anything went wrong.

getCommentArea

public String getCommentArea(String messageBody)
Get the actual comment text from a CVS log email. This is done by reading through line by line, and parsing the comment body.



Copyright © 2002-2006 Atlassian. All Rights Reserved.