public class ContentType
extends java.lang.Object
Constructor | Description |
---|---|
ContentType(java.lang.String[] permittedTypes) |
Constructor.
|
Modifier and Type | Method | 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 © 2018 Central Laboratory of the Research Councils. All Rights Reserved.