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