Package org.apache.catalina.filters
Class CsrfPreventionFilter.MimePredicate
java.lang.Object
org.apache.catalina.filters.CsrfPreventionFilter.MimePredicate
- All Implemented Interfaces:
CsrfPreventionFilter.Predicate<String>
- Enclosing class:
- CsrfPreventionFilter
protected static class CsrfPreventionFilter.MimePredicate
extends Object
implements CsrfPreventionFilter.Predicate<String>
A no-nonce Predicate that evaluates a MIME type instead of a URL.
It can be used with any other Predicate for matching
the actual value of the MIME type.
-
Constructor Summary
ConstructorDescriptionMimePredicate
(ServletContext context, CsrfPreventionFilter.Predicate<String> predicate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
MimePredicate
-
-
Method Details
-
test
- Specified by:
test
in interfaceCsrfPreventionFilter.Predicate<String>
-
getPredicate
-