枚举 TraceProperties.Include
- java.lang.Object
- java.lang.Enum<TraceProperties.Include>
- org.springframework.boot.actuate.trace.TraceProperties.Include
- 所有已实现的接口:
Serializable
,Comparable<TraceProperties.Include>
- 封闭类:
- TraceProperties
public static enum TraceProperties.Include extends Enum<TraceProperties.Include>
Include options for tracing.
枚举常量概要
枚举常量 枚举常量 说明 AUTH_TYPE
Include the authentication type.AUTHORIZATION_HEADER
Include authorization header (if any).CONTEXT_PATH
Include the context path.COOKIES
Include "Cookie" in request and "Set-Cookie" in response headers.ERRORS
Include errors (if any).PARAMETERS
Include the parameters.PATH_INFO
Include path info.PATH_TRANSLATED
Include the translated path.QUERY_STRING
Include the query string.REMOTE_ADDRESS
Include the remote address.REMOTE_USER
Include the remote user.REQUEST_HEADERS
Include request headers.RESPONSE_HEADERS
Include response headers.SESSION_ID
Include the session ID.TIME_TAKEN
Include the time taken to service the request in milliseconds.USER_PRINCIPAL
Include the user principal.
枚举常量详细资料
REQUEST_HEADERS
public static final TraceProperties.Include REQUEST_HEADERS
Include request headers.
RESPONSE_HEADERS
public static final TraceProperties.Include RESPONSE_HEADERS
Include response headers.
COOKIES
public static final TraceProperties.Include COOKIES
Include "Cookie" in request and "Set-Cookie" in response headers.
AUTHORIZATION_HEADER
public static final TraceProperties.Include AUTHORIZATION_HEADER
Include authorization header (if any).
ERRORS
public static final TraceProperties.Include ERRORS
Include errors (if any).
PATH_INFO
public static final TraceProperties.Include PATH_INFO
Include path info.
PATH_TRANSLATED
public static final TraceProperties.Include PATH_TRANSLATED
Include the translated path.
CONTEXT_PATH
public static final TraceProperties.Include CONTEXT_PATH
Include the context path.
USER_PRINCIPAL
public static final TraceProperties.Include USER_PRINCIPAL
Include the user principal.
PARAMETERS
public static final TraceProperties.Include PARAMETERS
Include the parameters.
QUERY_STRING
public static final TraceProperties.Include QUERY_STRING
Include the query string.
AUTH_TYPE
public static final TraceProperties.Include AUTH_TYPE
Include the authentication type.
REMOTE_ADDRESS
public static final TraceProperties.Include REMOTE_ADDRESS
Include the remote address.
SESSION_ID
public static final TraceProperties.Include SESSION_ID
Include the session ID.
REMOTE_USER
public static final TraceProperties.Include REMOTE_USER
Include the remote user.
TIME_TAKEN
public static final TraceProperties.Include TIME_TAKEN
Include the time taken to service the request in milliseconds.
方法详细资料
values
public static TraceProperties.Include[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (TraceProperties.Include c : TraceProperties.Include.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
valueOf
public static TraceProperties.Include valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值