Package org.eclipse.jetty.http
Class ComplianceViolation.CapturingListener
java.lang.Object
org.eclipse.jetty.http.ComplianceViolation.CapturingListener
- All Implemented Interfaces:
ComplianceViolation.Listener
- Enclosing interface:
- ComplianceViolation
public static class ComplianceViolation.CapturingListener
extends Object
implements ComplianceViolation.Listener
-
Field Summary
Fields inherited from interface org.eclipse.jetty.http.ComplianceViolation.Listener
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInitialize the listener in preparation for a new request life cycle.void
The compliance violation event.void
onRequestBegin
(Attributes request) A new Request has begun.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.ComplianceViolation.Listener
onComplianceViolation, onRequestEnd
-
Field Details
-
VIOLATIONS_ATTR_KEY
- See Also:
-
-
Constructor Details
-
CapturingListener
public CapturingListener()
-
-
Method Details
-
initialize
Description copied from interface:ComplianceViolation.Listener
Initialize the listener in preparation for a new request life cycle.- Specified by:
initialize
in interfaceComplianceViolation.Listener
- Returns:
- The Listener instance to use for the request life cycle.
-
onRequestBegin
Description copied from interface:ComplianceViolation.Listener
A new Request has begun.- Specified by:
onRequestBegin
in interfaceComplianceViolation.Listener
- 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)
-
onComplianceViolation
Description copied from interface:ComplianceViolation.Listener
The compliance violation event.- Specified by:
onComplianceViolation
in interfaceComplianceViolation.Listener
- Parameters:
event
- the compliance violation event
-