Esri Geoportal Server
1.2.9

com.esri.gpt.framework.robots
Enum Directive

java.lang.Object
  extended by java.lang.Enum<Directive>
      extended by com.esri.gpt.framework.robots.Directive
All Implemented Interfaces:
Serializable, Comparable<Directive>

public enum Directive
extends Enum<Directive>

Robots.txt file directive.


Enum Constant Summary
Allow
          Allow directive
CrawlDelay
          Crawl-Delay directive
Disallow
          Disallow directive
Host
          Host directive
Sitemap
          Sitemap directive
UserAgent
          User-Agent directive
 
Method Summary
static Directive parseDirective(String nameOrSymbol)
           
 String symbol()
          Gets symbol.
 String toString()
           
static Directive valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Directive[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UserAgent

public static final Directive UserAgent
User-Agent directive


Disallow

public static final Directive Disallow
Disallow directive


Allow

public static final Directive Allow
Allow directive


CrawlDelay

public static final Directive CrawlDelay
Crawl-Delay directive


Host

public static final Directive Host
Host directive


Sitemap

public static final Directive Sitemap
Sitemap directive

Method Detail

values

public static Directive[] 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 (Directive c : Directive.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Directive 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

symbol

public String symbol()
Gets symbol.

Symbol is a string which could be recognized within robots.txt file

Returns:
symbol

toString

public String toString()
Overrides:
toString in class Enum<Directive>

parseDirective

public static Directive parseDirective(String nameOrSymbol)

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.