Enum Class RequestTargetForm
- All Implemented Interfaces:
Serializable,Comparable<RequestTargetForm>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription例:GET http://example.com/index.html HTTP/1.1例:OPTIONS * HTTP/1.1例:CONNECT example.com:443 HTTP/1.1例: `GET /index.html? -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestTargetFormReturns the enum constant of this class with the specified name.static RequestTargetForm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORIGIN_FORM
例:
GET /index.html?foo=1 HTTP/1.1用于大多数客户端请求
-
ABSOLUTE_FORM
例:
GET http://example.com/index.html HTTP/1.1通过
HTTP代理发出请求时使用 -
AUTHORITY_FORM
例:
CONNECT example.com:443 HTTP/1.1仅与
CONNECT方法一起使用 -
ASTERISK_FORM
例:
OPTIONS * HTTP/1.1仅与
OPTIONS方法一起使用, 针对整个服务器
-
-
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
-