Package org.basex.http.web
Enum WebResponse.Response
- java.lang.Object
-
- java.lang.Enum<WebResponse.Response>
-
- org.basex.http.web.WebResponse.Response
-
- All Implemented Interfaces:
Serializable,Comparable<WebResponse.Response>
- Enclosing class:
- WebResponse
public static enum WebResponse.Response extends Enum<WebResponse.Response>
Response type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebResponse.ResponsevalueOf(String name)Returns the enum constant of this type with the specified name.static WebResponse.Response[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final WebResponse.Response NONE
No response.
-
STANDARD
public static final WebResponse.Response STANDARD
Standard response.
-
CUSTOM
public static final WebResponse.Response CUSTOM
Custom response.
-
-
Method Detail
-
values
public static WebResponse.Response[] 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 (WebResponse.Response c : WebResponse.Response.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebResponse.Response 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
-
-