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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static record | |
| public static interface | ComplianceViolation.
A listener that can be notified of violations. |
| public static class | |
| public static interface | ComplianceViolation.
A Mode is a set of |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | getURL()
Returns: A URL to the specification that provides more information regarding the requirement that may be violated. |
| public default boolean | isAllowedBy(ComplianceViolation.
A modeComplianceViolation. to test againstReturns: True iff this violations is allowed by the mode. |
| getDescription | back to summary |
|---|---|
public String getDescription()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getURL | back to summary |
|---|---|
public String getURL()
| |
| isAllowedBy | back to summary |
|---|---|
public default boolean isAllowedBy(ComplianceViolation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ComplianceViolation. | initialize()
Overrides default org. Initialize the listener in preparation for a new request life cycle. |
| public void | onComplianceViolation(ComplianceViolation.
the compliance violation event eventOverrides default org. The compliance violation event. |
| public void | onRequestBegin(Attributes
the request attributes, or null if the Request does not exist yet (eg: during parsing of HTTP/1.1 headers, before request is created) request)Overrides default org. A new Request has begun. |
| events | back to summary |
|---|---|
| private final List<ComplianceViolation. | |
| VIOLATIONS_ATTR_KEY | back to summary |
|---|---|
| public static final String VIOLATIONS_ATTR_KEY | |
| CapturingListener | back to summary |
|---|---|
| public CapturingListener() | |
| CapturingListener | back to summary |
|---|---|
| private CapturingListener(List<ComplianceViolation. | |
| initialize | back to summary |
|---|---|
| public ComplianceViolation. Overrides default org. Doc from org. Initialize the listener in preparation for a new request life cycle.
| |
| onComplianceViolation | back to summary |
|---|---|
| public void onComplianceViolation(ComplianceViolation. Overrides default org. Doc from org. The compliance violation event.
| |
| onRequestBegin | back to summary |
|---|---|
| public void onRequestBegin(Attributes request) Overrides default org. Doc from org. A new Request has begun.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final ComplianceViolation. | |
| private final ComplianceViolation | violation
Record Component accessed by violation(). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public ComplianceViolation. | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| public ComplianceViolation |
| details | back to summary |
|---|---|
| private final String details Record Component accessed by details(). | |
| mode | back to summary |
|---|---|
| private final ComplianceViolation. Record Component accessed by mode(). | |
| violation | back to summary |
|---|---|
| private final ComplianceViolation violation Record Component accessed by violation(). | |
| Event | back to summary |
|---|---|
| public Event(ComplianceViolation. | |
| details | back to summary |
|---|---|
| public String details() Record Component getter of details. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| mode | back to summary |
|---|---|
| public ComplianceViolation. Record Component getter of mode. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| violation | back to summary |
|---|---|
| public ComplianceViolation violation() Record Component getter of violation. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ComplianceViolation. |
| Modifier and Type | Method and Description |
|---|---|
| public default ComplianceViolation. | Returns: The Listener instance to use for the request life cycle.Initialize the listener in preparation for a new request life cycle. |
| public default void | onComplianceViolation(ComplianceViolation.
the compliance violation event eventThe compliance violation event. |
| public default void | onComplianceViolation(ComplianceViolation.
the mode mode,the violation violation, String the details details)
Deprecated
for removal since 12.0.6. use
onComplianceViolation(Event) instead.
The compliance violation event. |
| public default void | onRequestBegin(Attributes
the request attributes, or null if the Request does not exist yet (eg: during parsing of HTTP/1.1 headers, before request is created) request)A new Request has begun. |
| public default void | onRequestEnd(Attributes
the request attributes, or null if Request does not exist yet (eg: during handling of a request)BadMessageException)A Request has ended. |
| NOOP | back to summary |
|---|---|
| public static final ComplianceViolation. | |
| initialize | back to summary |
|---|---|
| public default ComplianceViolation. Initialize the listener in preparation for a new request life cycle.
| |
| onComplianceViolation | back to summary |
|---|---|
| public default void onComplianceViolation(ComplianceViolation. The compliance violation event.
| |
| onComplianceViolation | back to summary |
|---|---|
| public default void onComplianceViolation(ComplianceViolation. Deprecated for removal since 12.0.6. use The compliance violation event.
| |
| onRequestBegin | back to summary |
|---|---|
| public default void onRequestBegin(Attributes request) A new Request has begun.
| |
| onRequestEnd | back to summary |
|---|---|
| public default void onRequestEnd(Attributes request) A Request has ended.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onComplianceViolation(ComplianceViolation.
the compliance violation event eventOverrides default org. The compliance violation event. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| LoggingListener | back to summary |
|---|---|
| public LoggingListener() | |
| onComplianceViolation | back to summary |
|---|---|
| public void onComplianceViolation(ComplianceViolation. Overrides default org. Doc from org. The compliance violation event.
| |
ComplianceViolations that are allowed.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allows(ComplianceViolation
The violation)ComplianceViolation to testReturns: true iff the violation is allowed by this mode. |
| public Set | |
| public Set | |
| public String |
| allows | back to summary |
|---|---|
public boolean allows(ComplianceViolation violation)
| |
| getAllowed | back to summary |
|---|---|
public Set
| |
| getKnown | back to summary |
|---|---|
public Set
| |
| getName | back to summary |
|---|---|
public String getName()
| |