Enum Class HttpMethod
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.IDict, Serializable, Comparable<HttpMethod>, Constable
public enum HttpMethod
extends Enum<HttpMethod>
implements io.github.xezzon.zeroweb.core.trait.IDict
HTTP请求方法枚举
定义了开放平台允许使用的HTTP方法类型。
该枚举实现了 IDict 接口,
提供了统一的数据字典功能,包括获取标签、代码、标签和序号等方法。
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getLabel()intgetTag()static HttpMethodReturns the enum constant of this class with the specified name.static HttpMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GET
HTTP GET请求 -
POST
HTTP POST请求 -
PUT
HTTP PUT请求 -
DELETE
HTTP DELETE请求 -
PATCH
HTTP PATCH请求
-
-
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
-
getTag
- Specified by:
getTagin interfaceio.github.xezzon.zeroweb.core.trait.IDict
-
getCode
- Specified by:
getCodein interfaceio.github.xezzon.zeroweb.core.trait.IDict
-
getLabel
- Specified by:
getLabelin interfaceio.github.xezzon.zeroweb.core.trait.IDict
-
getOrdinal
public int getOrdinal()- Specified by:
getOrdinalin interfaceio.github.xezzon.zeroweb.core.trait.IDict
-