Package org.basex.http
Enum Class HTTPCode
- All Implemented Interfaces:
Serializable,Comparable<HTTPCode>,java.lang.constant.Constable
Enumeration with HTTP codes and error messages.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError: 400 (bad request).Error: 201 (created).Error 501, "Method not supported.".Error 400, "Multiple contexts supplied.".Error 400, "Multiple operations supplied".Error: 404, "No path specified".Error: 500, "RESTXQ path cannot be resolved.".Error: 404 (not found).Error: 404, "Service not found".Error 400, "Unknown parameter". -
Method Summary
-
Enum Constant Details
-
CREATED_X
Error: 201 (created). -
BAD_REQUEST_X
Error: 400 (bad request). -
UNKNOWN_PARAM_X
Error 400, "Unknown parameter". -
MULTIPLE_OPS_X
Error 400, "Multiple operations supplied". -
MULTIPLE_CONTEXTS
Error 400, "Multiple contexts supplied.". -
NOT_FOUND_X
Error: 404 (not found). -
NO_DATABASE_SPECIFIED
Error: 404, "No path specified". -
SERVICE_NOT_FOUND
Error: 404, "Service not found". -
NO_RESTXQ_DIRECTORY
Error: 500, "RESTXQ path cannot be resolved.". -
METHOD_NOT_SUPPORTED_X
Error 501, "Method not supported.".
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns an HTTP exception.- Parameters:
ext- extended info- Returns:
- HTTP exception
-