public enum HttpLogDetailLevel extends Enum<HttpLogDetailLevel>
| 枚举常量和说明 |
|---|
BASIC
Logs only URLs, HTTP methods, and time to finish the request.
|
BODY
Logs everything in BASIC, plus all the request and response body.
|
BODY_AND_HEADERS
Logs everything in HEADERS and BODY.
|
HEADERS
Logs everything in BASIC, plus all the request and response headers.
|
NONE
Logging is turned off.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
shouldLogBody()
a value indicating whether HTTP message bodies should be logged.
|
boolean |
shouldLogHeaders()
a value indicating whether HTTP message headers should be logged.
|
boolean |
shouldLogUrl()
a value indicating whether a request's URL should be logged.
|
static HttpLogDetailLevel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpLogDetailLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpLogDetailLevel NONE
public static final HttpLogDetailLevel BASIC
public static final HttpLogDetailLevel HEADERS
public static final HttpLogDetailLevel BODY
public static final HttpLogDetailLevel BODY_AND_HEADERS
public static HttpLogDetailLevel[] values()
for (HttpLogDetailLevel c : HttpLogDetailLevel.values()) System.out.println(c);
public static HttpLogDetailLevel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean shouldLogUrl()
public boolean shouldLogHeaders()
public boolean shouldLogBody()
Copyright © 2023. All rights reserved.