CsrfPreventionFilter.PatternPredicate (Apache Tomcat 10.1.57 API Documentation)
Description: declaration: package: org.apache.catalina.filters, class: CsrfPreventionFilter, class: PatternPredicate

# Class CsrfPreventionFilter.PatternPredicate

java.lang.Object
org.apache.catalina.filters.CsrfPreventionFilter.PatternPredicate

All Implemented Interfaces:
  `Predicate<String>`

Enclosing class:
  `CsrfPreventionFilter`

protected static class CsrfPreventionFilter.PatternPredicate extends Object implements Predicate<String>
A no-nonce Predicate that matches a regular expression.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PatternPredicate(String regex)`
  Construct a new PatternPredicate.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `test(String t)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface Predicate

  `and, negate, or`

- ## Constructor Details

  - ### PatternPredicate

    public PatternPredicate(String regex)
    Construct a new PatternPredicate.
    Parameters:
      `regex` - The regular expression pattern to match

- ## Method Details

  - ### test

    public boolean test(String t)
    Specified by:
      `test` in interface `Predicate<String>`