public class HtmlParser
extends java.lang.Object
Constructor and Description |
---|
HtmlParser() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<MailComment> |
parse(MailMessage email,
java.util.Collection<Comment> comments,
java.lang.String changeUrl)
Parses comments from html email.
|
public static java.util.List<MailComment> parse(MailMessage email, java.util.Collection<Comment> comments, java.lang.String changeUrl)
email
- MailMessage as received from the email service.comments
- A specific set of comments as sent out in the original notification email.
Comments are expected to be in the same order as they were sent out to in the emailchangeUrl
- Canonical change URL that points to the change on this Gerrit instance.
Example: https://go-review.googlesource.com/#/c/91570