Class CommonRestrictions

java.lang.Object
com.norconex.importer.handler.CommonRestrictions

public final class CommonRestrictions extends Object
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 Details

    • xmlFeedContentTypes

      public static PropertyMatchers xmlFeedContentTypes(String field)

      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

      public static PropertyMatchers domContentTypes(String field)

      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

      public static PropertyMatchers htmlContentTypes(String field)

      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

      public static PropertyMatchers xmlContentTypes(String field)

      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

      public static PropertyMatchers imageIOStandardContentTypes(String field)

      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