Violations which are allowed
when the mode is enabled.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | UriCompliance.
These are URI compliance "violations", which may be allowed by the compliance mode. |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicInteger | |
| private final Set | |
| private final String | |
| public static final Set | |
| public static final UriCompliance | |
| private static final List | |
| public static final UriCompliance | LEGACY
LEGACY compliance mode that models Jetty-9.4 behavior by allowing |
| private static final Logger | |
| public static final Set | |
| public static final UriCompliance | |
| public static final UriCompliance | UNAMBIGUOUS
Compliance mode that allows all unambiguous violations. |
| public static final UriCompliance | UNSAFE
Compliance mode that allows all URI Violations, including allowing ambiguous paths in non-canonical form. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allows(ComplianceViolation
The violation)ComplianceViolation to testImplements org.
|
| public static String | |
| private static Set | |
| private static Set | |
| public static UriCompliance | Returns: the compliance from the string specA string of violations to allow: violationsCreate compliance set from a set of allowed Violations. |
| public static UriCompliance | |
| public Set | Returns: The immutable set ofViolations allowed by this compliance mode.Implements org. Get the set of |
| public Set | |
| public String | |
| public static boolean | |
| public String | |
| public static UriCompliance | |
| public UriCompliance | Returns: A newUriCompliance mode.The name of the new mode name, UriCompliance.The violations to include violationsCreate a new UriCompliance mode that includes the passed |
| public UriCompliance | Returns: A newUriCompliance mode.The name of the new mode name, UriCompliance.The violations to exclude violationsCreate a new UriCompliance mode that excludes the passed |
| __custom | back to summary |
|---|---|
| private static final AtomicInteger __custom | |
| _allowed | back to summary |
|---|---|
| private final Set<UriCompliance. | |
| _name | back to summary |
|---|---|
| private final String _name | |
| AMBIGUOUS_VIOLATIONS | back to summary |
|---|---|
| public static final Set<UriCompliance. | |
| DEFAULT | back to summary |
|---|---|
| public static final UriCompliance DEFAULT The default compliance mode allows no violations from RFC3986
and is equivalent to | |
| KNOWN_MODES | back to summary |
|---|---|
| private static final List<UriCompliance> KNOWN_MODES | |
| LEGACY | back to summary |
|---|---|
| public static final UriCompliance LEGACY LEGACY compliance mode that models Jetty-9.4 behavior by allowing | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NO_VIOLATION | back to summary |
|---|---|
| public static final Set<UriCompliance. | |
| RFC3986 | back to summary |
|---|---|
| public static final UriCompliance RFC3986 Compliance mode that exactly follows RFC3986, excluding all URI Violations. | |
| UNAMBIGUOUS | back to summary |
|---|---|
| public static final UriCompliance UNAMBIGUOUS Compliance mode that allows all unambiguous violations. | |
| UNSAFE | back to summary |
|---|---|
| public static final UriCompliance UNSAFE Compliance mode that allows all URI Violations, including allowing ambiguous paths in non-canonical form. | |
| UriCompliance | back to summary |
|---|---|
| public UriCompliance(String name, Set<UriCompliance. | |
| allows | back to summary |
|---|---|
| public boolean allows(ComplianceViolation violation) Implements org.
| |
| checkUriCompliance | back to summary |
|---|---|
| public static String checkUriCompliance(UriCompliance compliance, HttpURI uri, ComplianceViolation. | |
| copyOf | back to summary |
|---|---|
| private static Set | |
| copyOf | back to summary |
|---|---|
| private static Set | |
| from | back to summary |
|---|---|
| public static UriCompliance from(Set<UriCompliance. Create compliance set from a set of allowed Violations.
| |
| from | back to summary |
|---|---|
| public static UriCompliance from(String spec) Create compliance set from string. Format: <BASE>[,[-]<violation>]... BASE is one of:
The remainder of the list can contain then names of
| |
| getAllowed | back to summary |
|---|---|
| public Set Implements org. Get the set of
| |
| getKnown | back to summary |
|---|---|
| public Set Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| isAmbiguous | back to summary |
|---|---|
| public static boolean isAmbiguous(Set<UriCompliance. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueOf | back to summary |
|---|---|
| public static UriCompliance valueOf(String name) | |
| with | back to summary |
|---|---|
| public UriCompliance with(String name, UriCompliance. Create a new UriCompliance mode that includes the passed
| |
| without | back to summary |
|---|---|
| public UriCompliance without(String name, UriCompliance. Create a new UriCompliance mode that excludes the passed
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| public static final UriCompliance. | AMBIGUOUS_EMPTY_SEGMENT
Allow ambiguous empty segments e.g. |
| public static final UriCompliance. | AMBIGUOUS_PATH_ENCODING
Allow ambiguous path encoding within a URI segment e.g. |
| public static final UriCompliance. | AMBIGUOUS_PATH_PARAMETER
Allow ambiguous path parameters within a URI segment e.g. |
| public static final UriCompliance. | AMBIGUOUS_PATH_SEGMENT
Allow ambiguous path segments e.g. |
| public static final UriCompliance. | AMBIGUOUS_PATH_SEPARATOR
Allow ambiguous path separator within a URI segment e.g. |
| public static final UriCompliance. | BAD_UTF8_ENCODING
Allow Bad UTF-8 encodings to be substituted by the replacement character. |
| public static final UriCompliance. | UTF16_ENCODINGS
Allow UTF-16 encoding eg |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public static UriCompliance. | |
| public static UriCompliance. |
| _description | back to summary |
|---|---|
| private final String _description | |
| _url | back to summary |
|---|---|
| private final String _url | |
| AMBIGUOUS_EMPTY_SEGMENT | back to summary |
|---|---|
| public static final UriCompliance. Allow ambiguous empty segments e.g. | |
| AMBIGUOUS_PATH_ENCODING | back to summary |
|---|---|
| public static final UriCompliance. Allow ambiguous path encoding within a URI segment e.g. | |
| AMBIGUOUS_PATH_PARAMETER | back to summary |
|---|---|
| public static final UriCompliance. Allow ambiguous path parameters within a URI segment e.g. | |
| AMBIGUOUS_PATH_SEGMENT | back to summary |
|---|---|
| public static final UriCompliance. Allow ambiguous path segments e.g. | |
| AMBIGUOUS_PATH_SEPARATOR | back to summary |
|---|---|
| public static final UriCompliance. Allow ambiguous path separator within a URI segment e.g. | |
| BAD_UTF8_ENCODING | back to summary |
|---|---|
| public static final UriCompliance. Allow Bad UTF-8 encodings to be substituted by the replacement character. | |
| UTF16_ENCODINGS | back to summary |
|---|---|
| public static final UriCompliance. Allow UTF-16 encoding eg | |
| Violation | back to summary |
|---|---|
| private Violation(String url, String description) | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getURL | back to summary |
|---|---|
| public String getURL() Implements org.
| |
| valueOf | back to summary |
|---|---|
| public static UriCompliance. | |
| values | back to summary |
|---|---|
| public static UriCompliance. | |