public class ContentTypeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureContentType(javax.mail.internet.ContentType expected,
javax.mail.internet.ContentType found)
Ensures the content type of an HTTP header matches an expected
value.
|
public static void ensureContentType(javax.mail.internet.ContentType expected, javax.mail.internet.ContentType found) throws ParseException
charset, are
ignored.expected - The expected content type. Must not be null.found - The found content type. May be null.ParseException - If the found content type is null or
it primary and subtype and doesn't match the
expected.Copyright © 2016 Connect2id Ltd.. All rights reserved.