-
- All Known Implementing Classes:
CookieCompliance.Violation,HttpCompliance.Violation,UriCompliance.Violation
public interface ComplianceViolationA Compliance Violation represents a requirement of an RFC, specification or Jetty implementation that may be allowed to be violated if it is included in aComplianceViolation.Mode. For example, supporting HTTP/0.9 is no longer a requirement of the current HTTP RFC, so by including theHttpCompliance.Violation.HTTP_0_9in theHttpComplianceComplianceViolation.Modeis interpreted as allowing HTTP/0.9 to be supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceComplianceViolation.ListenerA listener that can be notified of violations.static interfaceComplianceViolation.ModeA Mode is a set ofComplianceViolations that are allowed.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetName()java.lang.StringgetURL()default booleanisAllowedBy(ComplianceViolation.Mode mode)
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- The name of the violation.
-
getURL
java.lang.String getURL()
- Returns:
- A URL to the specification that provides more information regarding the requirement that may be violated.
-
getDescription
java.lang.String getDescription()
- Returns:
- A short description of the violation.
-
isAllowedBy
default boolean isAllowedBy(ComplianceViolation.Mode mode)
- Parameters:
mode- AComplianceViolation.Modeto test against- Returns:
- True iff this violations is allowed by the mode.
-
-