Package org.basex.util.http
Enum RequestAttribute
- java.lang.Object
-
- java.lang.Enum<RequestAttribute>
-
- org.basex.util.http.RequestAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<RequestAttribute>
public enum RequestAttribute extends Enum<RequestAttribute>
HTTP Request attributes.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALGORITHM
Algorithm.AUTH_METHOD
Auth-method.CNONCE
Cnonce.CSV
CSV.FOLLOW_REDIRECT
Follow-redirect.HREF
Href.HTML
HTML.JSON
JSON.METHOD
Method.NC
NC.NONCE
Nonce.OPAQUE
Opaque.OVERRIDE_MEDIA_TYPE
Override-media-type.PASSWORD
Password.QOP
QOP.REALM
Realm.RESPONSE
Response.SEND_AUTHORIZATION
Send-authorization.STATUS_ONLY
Status-only.TIMEOUT
Timeout.URI
URI.USERNAME
Username.
-
Field Summary
Fields Modifier and Type Field Description static RequestAttribute[]
VALUES
Cached enums (faster).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestAttribute
get(String key)
Returns an enum for the specified string.String
toString()
static RequestAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static RequestAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NC
public static final RequestAttribute NC
NC.
-
CSV
public static final RequestAttribute CSV
CSV.
-
QOP
public static final RequestAttribute QOP
QOP.
-
URI
public static final RequestAttribute URI
URI.
-
HREF
public static final RequestAttribute HREF
Href.
-
JSON
public static final RequestAttribute JSON
JSON.
-
HTML
public static final RequestAttribute HTML
HTML.
-
NONCE
public static final RequestAttribute NONCE
Nonce.
-
REALM
public static final RequestAttribute REALM
Realm.
-
OPAQUE
public static final RequestAttribute OPAQUE
Opaque.
-
CNONCE
public static final RequestAttribute CNONCE
Cnonce.
-
METHOD
public static final RequestAttribute METHOD
Method.
-
TIMEOUT
public static final RequestAttribute TIMEOUT
Timeout.
-
RESPONSE
public static final RequestAttribute RESPONSE
Response.
-
PASSWORD
public static final RequestAttribute PASSWORD
Password.
-
USERNAME
public static final RequestAttribute USERNAME
Username.
-
ALGORITHM
public static final RequestAttribute ALGORITHM
Algorithm.
-
AUTH_METHOD
public static final RequestAttribute AUTH_METHOD
Auth-method.
-
STATUS_ONLY
public static final RequestAttribute STATUS_ONLY
Status-only.
-
FOLLOW_REDIRECT
public static final RequestAttribute FOLLOW_REDIRECT
Follow-redirect.
-
SEND_AUTHORIZATION
public static final RequestAttribute SEND_AUTHORIZATION
Send-authorization.
-
OVERRIDE_MEDIA_TYPE
public static final RequestAttribute OVERRIDE_MEDIA_TYPE
Override-media-type.
-
-
Field Detail
-
VALUES
public static final RequestAttribute[] VALUES
Cached enums (faster).
-
-
Method Detail
-
values
public static RequestAttribute[] 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 (RequestAttribute c : RequestAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestAttribute 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
-
get
public static RequestAttribute get(String key)
Returns an enum for the specified string.- Parameters:
key
- key- Returns:
- enum or
null
-
toString
public String toString()
- Overrides:
toString
in classEnum<RequestAttribute>
-
-