Package org.apache.juneau.rest.logger
Class CallLoggerRule
java.lang.Object
org.apache.juneau.rest.logger.CallLoggerRule
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CallLoggerRule.Builder
Static creator.Returns the enablement flag value on this rule.Predicate<jakarta.servlet.http.HttpServletRequest>
Returns the enablement predicate test on this rule.getLevel()
Returns the log level on this rule.Returns the detail level for HTTP requests.Returns the detail level for HTTP responses.boolean
matches
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Returnstrue if this rule matches the specified parameters.toString()
-
Method Details
-
create
Static creator.- Parameters:
beanStore
- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Returnstrue if this rule matches the specified parameters.- Parameters:
req
- The HTTP request being logged. Nevernull .res
- The HTTP response being logged. Nevernull .- Returns:
true if this rule matches the specified parameters.
-
getRequestDetail
Returns the detail level for HTTP requests.- Returns:
- the detail level for HTTP requests, or
null if it's not set.
-
getResponseDetail
Returns the detail level for HTTP responses.- Returns:
- the detail level for HTTP responses, or
null if it's not set.
-
getLevel
Returns the log level on this rule.- Returns:
- The log level on this rule, or
null if it's not set.
-
getEnabled
Returns the enablement flag value on this rule.- Returns:
- The enablement flag value on this rule, or
null if it's not set.
-
getEnabledTest
Returns the enablement predicate test on this rule.- Returns:
- The enablement predicate test on this rule, or
null if it's not set.
-
toString
-