Package de.xima.fc.web.common.respond
Enum ERobotsTag
- java.lang.Object
-
- java.lang.Enum<ERobotsTag>
-
- de.xima.fc.web.common.respond.ERobotsTag
-
- All Implemented Interfaces:
Serializable
,Comparable<ERobotsTag>
public enum ERobotsTag extends Enum<ERobotsTag>
Possible values for theX-Robots-Tag
header.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
There are no restrictions for indexing or serving.NO_ARCHIVE
Do not show a cached link in search results.NO_FOLLOW
Do not follow the links on this page.NO_IMAGE_INDEX
Do not index images on this page.NO_INDEX
Do not show this page in search results.NO_SNIPPET
Do not show a text snippet or video preview in the search results for this page.NO_TRANSLATE
Do not offer translation of this page in search results.NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
String
toString()
static ERobotsTag
valueOf(String name)
Returns the enum constant of this type with the specified name.static ERobotsTag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
NONE
public static final ERobotsTag NONE
-
-
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 nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
- Returns:
- The value to be used for the
X-Robots-Tag
header.
-
toString
public String toString()
- Overrides:
toString
in classEnum<ERobotsTag>
-
-