Package org.eclipse.jetty.http
Interface ComplianceViolation.Mode
- All Known Implementing Classes:
CookieCompliance,HttpCompliance,UriCompliance
- Enclosing interface:
- ComplianceViolation
public static interface ComplianceViolation.Mode
A Mode is a set of
ComplianceViolations that are allowed.-
Method Summary
Modifier and TypeMethodDescriptionbooleanallows(ComplianceViolation violation) Set<? extends ComplianceViolation>Set<? extends ComplianceViolation>getKnown()getName()
-
Method Details
-
getName
String getName()- Returns:
- The name of the compliance violation mode.
-
allows
- Parameters:
violation- TheComplianceViolationto test- Returns:
- true iff the violation is allowed by this mode.
-
getKnown
Set<? extends ComplianceViolation> getKnown()- Returns:
- The immutable set of all known violations for this mode.
-
getAllowed
Set<? extends ComplianceViolation> getAllowed()- Returns:
- The immutable set of violations allowed by this mode.
-