Esri Geoportal Server
1.0

com.esri.gpt.control.georss
Enum RestQueryServlet.ResponseFormat

java.lang.Object
  extended by java.lang.Enum<RestQueryServlet.ResponseFormat>
      extended by com.esri.gpt.control.georss.RestQueryServlet.ResponseFormat
All Implemented Interfaces:
Serializable, Comparable<RestQueryServlet.ResponseFormat>
Enclosing class:
RestQueryServlet

protected static enum RestQueryServlet.ResponseFormat
extends Enum<RestQueryServlet.ResponseFormat>

Enumeration of response formats.


Enum Constant Summary
atom
           
georss
           
html
           
htmlfragment
           
json
           
kml
           
pjson
           
searchpage
           
searchpageresults
           
 
Method Summary
protected static RestQueryServlet.ResponseFormat checkValueOf(String value)
          Checks then returns the format associated with a value.
static RestQueryServlet.ResponseFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RestQueryServlet.ResponseFormat[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

georss

public static final RestQueryServlet.ResponseFormat georss

kml

public static final RestQueryServlet.ResponseFormat kml

html

public static final RestQueryServlet.ResponseFormat html

htmlfragment

public static final RestQueryServlet.ResponseFormat htmlfragment

atom

public static final RestQueryServlet.ResponseFormat atom

json

public static final RestQueryServlet.ResponseFormat json

pjson

public static final RestQueryServlet.ResponseFormat pjson

searchpage

public static final RestQueryServlet.ResponseFormat searchpage

searchpageresults

public static final RestQueryServlet.ResponseFormat searchpageresults
Method Detail

values

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

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

valueOf

public static RestQueryServlet.ResponseFormat 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

checkValueOf

protected static RestQueryServlet.ResponseFormat checkValueOf(String value)
Checks then returns the format associated with a value.
If the value is invalid, the default is returned.

Parameters:
value - the value to check.
Returns:
the format Default: georss

Esri Geoportal Server
1.0

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