Package org.eclipse.jetty.http
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComplianceViolation.Listener
Initialize the listener in preparation for a new request life cycle.default void
The compliance violation event.default void
onComplianceViolation
(ComplianceViolation.Mode mode, ComplianceViolation violation, String details) Deprecated, for removal: This API element is subject to removal in a future version.default void
onRequestBegin
(Attributes request) A new Request has begun.default void
onRequestEnd
(Attributes request) A Request has ended.
-
Field Details
-
NOOP
-
-
Method Details
-
initialize
Initialize the listener in preparation for a new request life cycle.- Returns:
- The Listener instance to use for the request life cycle.
-
onRequestBegin
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
A Request has ended.- Parameters:
request
- the request attributes, or null if Request does not exist yet (eg: during handling of aBadMessageException
)
-
onComplianceViolation
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.useonComplianceViolation(Event)
instead. Will be removed in Jetty 12.1.0The compliance violation event.- Parameters:
mode
- the modeviolation
- the violationdetails
- the details
-
onComplianceViolation(Event)
instead.