Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.mail.actionpipe.parser
Class DefaultFrenchMailParser

java.lang.Object
  extended by org.nuxeo.cm.mail.actionpipe.parser.DefaultFrenchMailParser
All Implemented Interfaces:
MailActionPipeConstants, MailBodyParser

public class DefaultFrenchMailParser
extends Object
implements MailBodyParser, MailActionPipeConstants

Author:
Sun Seng David TAN

Field Summary
static Pattern CONTACT_PATTERN
           
static String EMAIL_MATCH
           
static Pattern FRENCH_HEADER_PATTERN
           
static Log log
           
static String TRANSFER_MARKER
           
 
Fields inherited from interface org.nuxeo.cm.mail.actionpipe.MailActionPipeConstants
ATTACHMENTS_KEY, BODY_KEY, CASEMANAGEMENT_SERVICE_KEY, CORE_SESSION_ID_KEY, MESSAGE_ID_KEY, MIMETYPE_SERVICE_KEY, ORIGINAL_CC_RECIPIENTS_KEY, ORIGINAL_RECEPTION_DATE_KEY, ORIGINAL_SENDER_NAME_KEY, ORIGINAL_SENDERS_KEY, ORIGINAL_TO_RECIPIENTS_KEY, RECEPTION_DATE_KEY, SENDER_EMAIL_KEY, SENDER_KEY, SUBJECT_KEY
 
Constructor Summary
DefaultFrenchMailParser()
           
 
Method Summary
 Pattern getHeaderPattern()
          The header pattern used to identify a parser to be used
 boolean parse(Matcher m, Map<String,Object> resultMap)
          Perform the parsing
static Contacts parseContacts(String contacts)
           
static Calendar parseDate(String dateString)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Log log

EMAIL_MATCH

public static final String EMAIL_MATCH
See Also:
Constant Field Values

CONTACT_PATTERN

public static final Pattern CONTACT_PATTERN

FRENCH_HEADER_PATTERN

public static final Pattern FRENCH_HEADER_PATTERN

TRANSFER_MARKER

public static final String TRANSFER_MARKER
See Also:
Constant Field Values
Constructor Detail

DefaultFrenchMailParser

public DefaultFrenchMailParser()
Method Detail

getHeaderPattern

public Pattern getHeaderPattern()
Description copied from interface: MailBodyParser
The header pattern used to identify a parser to be used

Specified by:
getHeaderPattern in interface MailBodyParser
Returns:
the regexp to be used

parse

public boolean parse(Matcher m,
                     Map<String,Object> resultMap)
Description copied from interface: MailBodyParser
Perform the parsing

Specified by:
parse in interface MailBodyParser
Returns:

parseContacts

public static Contacts parseContacts(String contacts)

parseDate

public static Calendar parseDate(String dateString)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.