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