public class RestCallLoggerRule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestCallLoggerRule.Builder
Builder class for this object.
|
Modifier and Type | Method and Description |
---|---|
static RestCallLoggerRule.Builder |
create()
Creates a new builder for this object.
|
Enablement |
getDisabled()
Returns the disabled flag.
|
Level |
getLevel()
Returns the log level.
|
RestCallLoggingDetail |
getReqDetail()
Returns the detail level for HTTP requests.
|
RestCallLoggingDetail |
getResDetail()
Returns the detail level for HTTP responses.
|
boolean |
matches(int statusCode,
boolean debug,
Throwable e)
Returns
|
String |
toString() |
public static RestCallLoggerRule.Builder create()
public boolean matches(int statusCode, boolean debug, Throwable e)
statusCode
- The HTTP response status code.debug
- Whether debug is enabled on the request.e
- Exception thrown while handling the request.public RestCallLoggingDetail getReqDetail()
public RestCallLoggingDetail getResDetail()
public Enablement getDisabled()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.