public class ContentType
extends java.lang.Object
| Constructor and Description |
|---|
ContentType(java.lang.String[] permittedTypes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkType(Reporter reporter,
java.lang.String declaredType,
java.net.URL url)
Checks a declared Content-Type string against the permitted
values for this object.
|
public ContentType(java.lang.String[] permittedTypes)
permittedTypes - array of MIME type/subtype strings allowedpublic void checkType(Reporter reporter, java.lang.String declaredType, java.net.URL url)
reporter - destination for validation messagesdeclaredType - Content-Type to assessurl - source of content, used for report messagesCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.