public static enum LoggingFeature.Verbosity extends Enum<LoggingFeature.Verbosity>
Verbosity
determines how detailed message will be logged.
HEADERS_ONLY
) will log only request/response headers.PAYLOAD_TEXT
.
Note that the entity is logged up to the maximum number specified in any of the following constructors LoggingFeature.LoggingFeature(Logger, Integer)
, LoggingFeature.LoggingFeature(Logger, Level, Verbosity, Integer)
or by some of the feature's properties (see LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE
, LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT
, LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER
.
Enum Constant and Description |
---|
HEADERS_ONLY
Only content of HTTP headers is logged.
|
PAYLOAD_ANY
Full verbose logging.
|
PAYLOAD_TEXT
Content of HTTP headers as well as entity content of textual media types is logged.
|
Modifier and Type | Method and Description |
---|---|
static LoggingFeature.Verbosity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingFeature.Verbosity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingFeature.Verbosity HEADERS_ONLY
public static final LoggingFeature.Verbosity PAYLOAD_TEXT
text/*
application/atom+xml
application/json
application/svg+xml
application/x-www-form-urlencoded
application/xhtml+xml
application/xml
public static final LoggingFeature.Verbosity PAYLOAD_ANY
public static LoggingFeature.Verbosity[] values()
for (LoggingFeature.Verbosity c : LoggingFeature.Verbosity.values()) System.out.println(c);
public static LoggingFeature.Verbosity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.