Interface ComplianceViolation
- All Known Implementing Classes:
 CookieCompliance.Violation, HttpCompliance.Violation, MultiPartCompliance.Violation, UriCompliance.Violation
public interface ComplianceViolation
A Compliance Violation represents a requirement of an RFC, specification or Jetty implementation
that may be allowed to be violated if it is included in a 
ComplianceViolation.Mode.
For example, supporting HTTP/0.9 is no longer a requirement of the current HTTP RFC, so by including
the HttpCompliance.Violation.HTTP_0_9 in the HttpCompliance ComplianceViolation.Mode
is interpreted as allowing HTTP/0.9 to be supported.- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final recordstatic interfaceA listener that can be notified of violations.static classstatic interfaceA Mode is a set ofComplianceViolations that are allowed. - 
Method Summary
Modifier and TypeMethodDescriptiongetName()getURL()default booleanstatic voidnotify(List<ComplianceViolation.Listener> listeners, ComplianceViolation.Mode mode, ComplianceViolation violation, String details)  
- 
Method Details
- 
getName
String getName()- Returns:
 - The name of the violation.
 
 - 
getURL
String getURL()- Returns:
 - A URL to the specification that provides more information regarding the requirement that may be violated.
 
 - 
getDescription
String getDescription()- Returns:
 - A short description of the violation.
 
 - 
isAllowedBy
- Parameters:
 mode- AComplianceViolation.Modeto test against- Returns:
 - True iff this violations is allowed by the mode.
 
 - 
notify
static void notify(List<ComplianceViolation.Listener> listeners, ComplianceViolation.Mode mode, ComplianceViolation violation, String details)  
 -