Class CallLoggerRule

java.lang.Object
org.apache.juneau.rest.logger.CallLoggerRule

public class CallLoggerRule extends Object
Represents a logging rule used by CallLogger.
See Also:
  • Method Details

    • create

      public static CallLoggerRule.Builder create(BeanStore beanStore)
      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)
      Returns true if this rule matches the specified parameters.
      Parameters:
      req - The HTTP request being logged. Never null.
      res - The HTTP response being logged. Never null.
      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

      public Level 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

      public Predicate<jakarta.servlet.http.HttpServletRequest> 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

      public String toString()
      Overrides:
      toString in class Object