@Bean(fluentSetters=true) public static class RestCallLoggerRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RestCallLoggerRule |
build()
Instantiates a new
RestCallLoggerRule object using the settings in this builder. |
RestCallLoggerRule.Builder |
codes(String value)
The code ranges that this logging rule applies to.
|
RestCallLoggerRule.Builder |
debugOnly()
Shortcut for calling
|
RestCallLoggerRule.Builder |
debugOnly(Boolean value)
This match only applies when debug is enabled on the request.
|
RestCallLoggerRule.Builder |
disabled()
Shortcut for calling
|
RestCallLoggerRule.Builder |
disabled(Enablement value)
Shortcut for specifying
Level.OFF for level(Level) . |
RestCallLoggerRule.Builder |
exceptions(String value)
The exception naming pattern that this rule applies to.
|
RestCallLoggerRule.Builder |
level(Level value)
The logging level to use for logging the request/response.
|
RestCallLoggerRule.Builder |
req(RestCallLoggingDetail value)
The level of detail to log on a request.
|
RestCallLoggerRule.Builder |
res(RestCallLoggingDetail value)
The level of detail to log on a response.
|
RestCallLoggerRule.Builder |
verbose()
Shortcut for calling
|
RestCallLoggerRule.Builder |
verbose(Boolean value)
Shortcut for specifying
RestCallLoggingDetail.LONG for req(RestCallLoggingDetail) and res(RestCallLoggingDetail) . |
public Builder()
public RestCallLoggerRule.Builder codes(String value)
See NumberMatcherFactory
for format of values.
value
- The new value for this property.
public RestCallLoggerRule.Builder exceptions(String value)
See StringMatcherFactory
for format of values.
The pattern can be against either the fully-qualified or simple class name of the exception.
value
- The new value for this property.
public RestCallLoggerRule.Builder verbose(Boolean value)
RestCallLoggingDetail.LONG
for req(RestCallLoggingDetail)
and res(RestCallLoggingDetail)
.value
- The new value for this property.
public RestCallLoggerRule.Builder verbose()
public RestCallLoggerRule.Builder disabled(Enablement value)
Level.OFF
for level(Level)
.value
- The new value for this property.
public RestCallLoggerRule.Builder disabled()
public RestCallLoggerRule.Builder debugOnly(Boolean value)
value
- The new value for this property.public RestCallLoggerRule.Builder debugOnly()
public RestCallLoggerRule.Builder req(RestCallLoggingDetail value)
The default value is RestCallLoggingDetail.SHORT
.
value
- The new value for this property.
public RestCallLoggerRule.Builder res(RestCallLoggingDetail value)
The default value is RestCallLoggingDetail.SHORT
.
value
- The new value for this property.
public RestCallLoggerRule.Builder level(Level value)
The default value is Level.INFO
.
value
- The new value for this property.
public RestCallLoggerRule build()
RestCallLoggerRule
object using the settings in this builder.RestCallLoggerRule
object.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.