Interface ComplianceViolation.Listener

All Known Implementing Classes:
ComplianceViolation.CapturingListener, ComplianceViolation.LoggingListener, CookieCache, CookieCache
Enclosing interface:
ComplianceViolation

public static interface ComplianceViolation.Listener
A listener that can be notified of violations.
  • Field Details

  • Method Details

    • initialize

      default ComplianceViolation.Listener initialize()
      Initialize the listener in preparation for a new request life cycle.
      Returns:
      The Listener instance to use for the request life cycle.
    • onRequestBegin

      default void onRequestBegin(Attributes request)
      A new Request has begun.
      Parameters:
      request - the request attributes, or null if the Request does not exist yet (eg: during parsing of HTTP/1.1 headers, before request is created)
    • onRequestEnd

      default void onRequestEnd(Attributes request)
      A Request has ended.
      Parameters:
      request - the request attributes, or null if Request does not exist yet (eg: during handling of a BadMessageException)
    • onComplianceViolation

      default void onComplianceViolation(ComplianceViolation.Event event)
      The compliance violation event.
      Parameters:
      event - the compliance violation event
    • onComplianceViolation

      @Deprecated(since="12.0.6", forRemoval=true) default void onComplianceViolation(ComplianceViolation.Mode mode, ComplianceViolation violation, String details)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use onComplianceViolation(Event) instead. Will be removed in Jetty 12.1.0
      The compliance violation event.
      Parameters:
      mode - the mode
      violation - the violation
      details - the details