Package uk.ac.starlink.ttools.taplint
Class ContentTypeOptions
- java.lang.Object
-
- uk.ac.starlink.ttools.taplint.ContentTypeOptions
-
public class ContentTypeOptions extends java.lang.Object
Defines a permitted class of MIME types.- Since:
- 24 May 2016
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ContentTypeOptions(uk.ac.starlink.util.ContentType[] permittedTypes)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
checkType
public 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. Validation messages are reported in case of non-compliance.- Parameters:
reporter
- destination for validation messagesdeclaredTypeTxt
- Content-Type to assessurl
- source of content, used for report messages
-
-