Enum ERobotsTag

    • Enum Constant Detail

      • ALL

        public static final ERobotsTag ALL
        There are no restrictions for indexing or serving. This directive is the default value and has no effect if explicitly listed.
      • NO_ARCHIVE

        public static final ERobotsTag NO_ARCHIVE
        Do not show a cached link in search results. If you don't specify this directive, search engines may generate a cached page and users may access it through the search results.
      • NO_FOLLOW

        public static final ERobotsTag NO_FOLLOW
        Do not follow the links on this page. If you don't specify this directive, search engines may use the links on the page to discover those linked pages.
      • NO_IMAGE_INDEX

        public static final ERobotsTag NO_IMAGE_INDEX
        Do not index images on this page. If you don't specify this value, images on the page may be indexed and shown in search results.
      • NO_INDEX

        public static final ERobotsTag NO_INDEX
        Do not show this page in search results. If you don't specify this directive, the page may be indexed and shown in search results.
      • NO_SNIPPET

        public static final ERobotsTag NO_SNIPPET
        Do not show a text snippet or video preview in the search results for this page. A static image thumbnail (if available) may still be visible, when it results in a better user experience. This applies to all forms of search results (such as web search, images, etc.). If you don't specify this directive, search engines may generate a text snippet and video preview based on information found on the page.
      • NO_TRANSLATE

        public static final ERobotsTag NO_TRANSLATE
        Do not offer translation of this page in search results. If you don't specify this directive, search engines may show a link next to the result to help users view translated content on your page.
    • Method Detail

      • values

        public static ERobotsTag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ERobotsTag c : ERobotsTag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ERobotsTag valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Returns:
        The value to be used for the X-Robots-Tag header.