com.atlassian.confluence.plugins.emailgateway.converter
Class DefaultEmailContentParser

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.converter.DefaultEmailContentParser
All Implemented Interfaces:
EmailContentParser

public class DefaultEmailContentParser
extends java.lang.Object
implements EmailContentParser


Constructor Summary
DefaultEmailContentParser(EmailHtmlToStorageConverter converter)
           
 
Method Summary
 java.util.List<javax.mail.internet.InternetAddress> getEmailAddressesFromContent(java.lang.String content)
          Gets the set of email addresses mentioned in the given email content - including the sender, to, cc and bcc recipients.
 java.lang.String parseContent(ReceivedEmail email)
          Parses the content of the email into Storage XHTML.
 java.lang.String parseSubject(java.lang.String subject)
          Parses the subject to strip away any forward or reply prefixes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEmailContentParser

public DefaultEmailContentParser(EmailHtmlToStorageConverter converter)
Method Detail

parseContent

public java.lang.String parseContent(ReceivedEmail email)
Description copied from interface: EmailContentParser
Parses the content of the email into Storage XHTML.

Specified by:
parseContent in interface EmailContentParser
Parameters:
email - the email to parse
Returns:
the content

getEmailAddressesFromContent

public java.util.List<javax.mail.internet.InternetAddress> getEmailAddressesFromContent(java.lang.String content)
Description copied from interface: EmailContentParser
Gets the set of email addresses mentioned in the given email content - including the sender, to, cc and bcc recipients.

Specified by:
getEmailAddressesFromContent in interface EmailContentParser
Parameters:
content - the content to parse
Returns:
the recipients found

parseSubject

public java.lang.String parseSubject(java.lang.String subject)
Description copied from interface: EmailContentParser
Parses the subject to strip away any forward or reply prefixes.

Specified by:
parseSubject in interface EmailContentParser
Parameters:
subject - the subject to parse
Returns:
the subject without prefixes


Copyright © 2003-2014 Atlassian. All Rights Reserved.