Class TextParser
- java.lang.Object
-
- com.google.gerrit.server.mail.receive.TextParser
-
public class TextParser extends Object
Provides parsing functionality for plaintext email.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<MailComment>
parse(MailMessage email, Collection<Comment> comments, String changeUrl)
Parses comments from plaintext email.
-
-
-
Method Detail
-
parse
public static List<MailComment> parse(MailMessage email, Collection<Comment> comments, String changeUrl)
Parses comments from plaintext email.- Parameters:
email
-email
- the message as received from the email servicecomments
- list ofComment
s previously persisted on the change that caused the original notification email to be sent out. Ordering must be the same as in the outbound emailchangeUrl
- canonical change url that points to the change on this Gerrit instance. Example: https://go-review.googlesource.com/#/c/91570- Returns:
- list of MailComments parsed from the plaintext part of the email
-
-