Package com.norconex.importer.handler
Class CommonRestrictions
java.lang.Object
com.norconex.importer.handler.CommonRestrictions
Commonly encountered restrictions that can be applied to
Properties
instances. Each method return a newly created
list that can safely be modified without impacting subsequent calls.-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyMatchersdomContentTypes(String field) Common content-types defining a DOM document.static PropertyMatchershtmlContentTypes(String field) Default content-types defining an HTML or XHTML document.static PropertyMatchersContent types of standard image format supported by all Java ImageIO implementations: JPEG, PNG, GIF, BMP, WBMP.static PropertyMatchersxmlContentTypes(String field) Common content-types defining an XML document.static PropertyMatchersxmlFeedContentTypes(String field) Common content-types defining an XML feed (RSS, Atom).
-
Method Details
-
xmlFeedContentTypes
Common content-types defining an XML feed (RSS, Atom). The field has to contain one of these for the restriction to apply:
CommonMatchers.XML_FEED_CONTENT_TYPES- Parameters:
field- name of Properties field- Returns:
- list of restrictions
-
domContentTypes
Common content-types defining a DOM document. That is, documents that are HTML, XHTML, or XML-based. The field has to contain one of these for the restriction to apply:
CommonMatchers.DOM_CONTENT_TYPES- Parameters:
field- name of Properties field- Returns:
- list of restrictions
-
htmlContentTypes
Default content-types defining an HTML or XHTML document. The field has to contain one of these for the restriction to apply:
CommonMatchers.HTML_CONTENT_TYPES- Parameters:
field- name of Properties field- Returns:
- list of restrictions
-
xmlContentTypes
Common content-types defining an XML document. The field has to contain one of these for the restriction to apply:
CommonMatchers.XML_CONTENT_TYPES- Parameters:
field- name of Properties field- Returns:
- list of restrictions
-
imageIOStandardContentTypes
Content types of standard image format supported by all Java ImageIO implementations: JPEG, PNG, GIF, BMP, WBMP. The field has to contain one of these for the restriction to apply:
CommonMatchers.IMAGE_IO_CONTENT_TYPES- Parameters:
field- name of Properties field- Returns:
- list of restrictions
-