public enum HttpHeaderEnum extends Enum<HttpHeaderEnum>
| 枚举常量和说明 |
|---|
ACCESS_CONTROL_ALLOW_CREDENTIALS
The Access-Control-Allow-Credentials header indicates whether the
response to request can be exposed when the omit credentials flag is
unset.
|
ACCESS_CONTROL_ALLOW_HEADERS
The Access-Control-Allow-Headers header indicates, as part of the
response to a preflight request, which header field names can be used
during the actual request.
|
ACCESS_CONTROL_ALLOW_METHODS
The Access-Control-Allow-Methods header indicates, as part of the
response to a preflight request, which methods can be used during the
actual request.
|
ACCESS_CONTROL_ALLOW_ORIGIN
The Access-Control-Allow-Origin header indicates whether a resource can
be shared based by returning the value of the Origin request header in
the response.
|
ACCESS_CONTROL_EXPOSE_HEADERS
The Access-Control-Expose-Headers header indicates which headers are safe
to expose to the API of a CORS API specification
|
ACCESS_CONTROL_MAX_AGE
The Access-Control-Max-Age header indicates how long the results of a
preflight request can be cached in a preflight result cache.
|
ACCESS_CONTROL_REQUEST_HEADERS
The Access-Control-Request-Headers header indicates which headers will be
used in the actual request as part of the preflight request.
|
ACCESS_CONTROL_REQUEST_METHOD
The Access-Control-Request-Method header indicates which method will be
used in the actual request as part of the preflight request.
|
AUTHORIZATION
Header Validate Field For JSON Token
|
CONTENT_TYPE
请求类型
|
ORIGIN
The Origin header indicates where the cross-origin request or preflight
request originates from.
|
TRACE_ID
请求类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
void |
setCode(String code) |
static HttpHeaderEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpHeaderEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpHeaderEnum TRACE_ID
public static final HttpHeaderEnum CONTENT_TYPE
public static final HttpHeaderEnum ACCESS_CONTROL_ALLOW_ORIGIN
public static final HttpHeaderEnum ACCESS_CONTROL_ALLOW_CREDENTIALS
public static final HttpHeaderEnum ACCESS_CONTROL_EXPOSE_HEADERS
public static final HttpHeaderEnum ACCESS_CONTROL_MAX_AGE
public static final HttpHeaderEnum ACCESS_CONTROL_ALLOW_METHODS
public static final HttpHeaderEnum ACCESS_CONTROL_ALLOW_HEADERS
public static final HttpHeaderEnum ORIGIN
public static final HttpHeaderEnum ACCESS_CONTROL_REQUEST_METHOD
public static final HttpHeaderEnum ACCESS_CONTROL_REQUEST_HEADERS
public static final HttpHeaderEnum AUTHORIZATION
public static HttpHeaderEnum[] values()
for (HttpHeaderEnum c : HttpHeaderEnum.values()) System.out.println(c);
public static HttpHeaderEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getCode()
public void setCode(String code)
Copyright © 2024. All rights reserved.