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

java.lang.Object
  |
  +--com.atlassian.jira.service.util.handler.AbstractMessageHandler
        |
        +--com.atlassian.jira.service.util.handler.CreateOrCommentHandler
All Implemented Interfaces:
MessageHandler

public class CreateOrCommentHandler
extends AbstractMessageHandler

A message handler to create a new issue, or add a comment to an existing issue, from an incoming message. If the subject contains a project key the message is added as a comment to that issue. If no project key is found, a new issue is created in the default project.


Field Summary
 java.lang.String catchEmail
           
 java.lang.String issueType
           
 java.lang.String projectKey
           
 java.lang.String reporteremail
           
 java.lang.String stripquotes
           
 
Constructor Summary
CreateOrCommentHandler()
           
 
Method Summary
 boolean handleMessage(javax.mail.Message message)
           
 void init(java.util.Map params)
           
 
Methods inherited from class com.atlassian.jira.service.util.handler.AbstractMessageHandler
createAttachmentsForMessage, createAttachmentWithPart, getFileFromPart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectKey

public java.lang.String projectKey

issueType

public java.lang.String issueType

catchEmail

public java.lang.String catchEmail

reporteremail

public java.lang.String reporteremail

stripquotes

public java.lang.String stripquotes
Constructor Detail

CreateOrCommentHandler

public CreateOrCommentHandler()
Method Detail

init

public void init(java.util.Map params)
Specified by:
init in interface MessageHandler
Overrides:
init in class AbstractMessageHandler

handleMessage

public boolean handleMessage(javax.mail.Message message)
                      throws javax.mail.MessagingException
Specified by:
handleMessage in interface MessageHandler
Specified by:
handleMessage in class AbstractMessageHandler
javax.mail.MessagingException


Copyright © 2002-2003 Atlassian. All Rights Reserved.