org.cert.cc.jira.email.handler
Class BodyParserImpl

java.lang.Object
  extended by org.cert.cc.jira.email.handler.BodyParserImpl
All Implemented Interfaces:
BodyParser

public final class BodyParserImpl
extends Object
implements BodyParser

BodyParser parses the body and optionally sets custom field values

© 2012 Carnegie Mellon University

Author:
Steve Scholnick

Constructor Summary
BodyParserImpl()
          Constructor
 
Method Summary
 String parseBody(String body, MutableIssue issue)
          Parses the body an optionally sets custom fields values
 void setCustomFieldFactory(CustomFieldFactory factory)
          Sets the CustomFieldFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyParserImpl

public BodyParserImpl()
Constructor

Method Detail

parseBody

public String parseBody(String body,
                        MutableIssue issue)
Parses the body an optionally sets custom fields values

Specified by:
parseBody in interface BodyParser
Parameters:
body - Email Body
issue - Issue data
Returns:
Empty String (success) or error message

setCustomFieldFactory

public void setCustomFieldFactory(CustomFieldFactory factory)
Sets the CustomFieldFactory

Specified by:
setCustomFieldFactory in interface BodyParser


Copyright © 2012 Carnegie Mellon University