Package org.eclipse.jetty.http
Interface ComplianceViolation.Mode
- All Known Implementing Classes:
CookieCompliance
,HttpCompliance
,MultiPartCompliance
,UriCompliance
- Enclosing interface:
- ComplianceViolation
public static interface ComplianceViolation.Mode
A Mode is a set of
ComplianceViolation
s that are allowed.-
Method Summary
Modifier and TypeMethodDescriptionboolean
allows
(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
- TheComplianceViolation
to 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.
-