| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Predicate | |
| public static Predicate | Returns: A predicate that returns true if authentication is requiredA predicate that returns true if authentication is required |
| public static Predicate | contains(final ExchangeAttribute
The exchange attribute. attribute, final String... The values to check for. values)Returns true if the given attribute is present and contains one of the provided value. |
| public static Predicate | Returns: A new EqualsPredicate.to be compared in the predictor. attributes)Creates a procedure that returns true if the given ExchangeAttributes are equal. |
| public static Predicate | exists(final ExchangeAttribute
The attribute to check whether it exists or not. attribute)Return a predicate that will return true if the given attribute is not null and not empty. |
| public static Predicate | |
| public static Predicate | maxContentSize(final long size)
Deprecated
Predicate that returns true if the Content-Size of a request is above a given value. |
| public static Predicate | minContentSize(final long size)
Deprecated
Predicate that returns true if the Content-Size of a request is below a given value. |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | Returns: The predicateThe prediate string predicate, ClassLoader The class loader to load the predicates from classLoader)parses the predicate string, and returns the result |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | regex(final ExchangeAttribute
The exchange attribute to check against. attribute, final String The pattern to look for. pattern)Creates a predicate that matches the given attribute against a regex. |
| public static Predicate | regex(final ExchangeAttribute
The attribute to check against. attribute, final String The pattern to look for. pattern, boolean If a full match is required in order to return true. requireFullMatch)Creates a predicate that matches the given attribute against a regex. |
| public static Predicate | regex(final String
The attribute to check against. attribute, final String The pattern to look for. pattern, final ClassLoader classLoader, final boolean If a full match is required in order to return true. requireFullMatch)Creates a predicate that matches the given attribute against a regex. |
| public static Predicate | requestLargerThan(final long size)
Predicate that returns true if the Content-Size of a request is larger than a given size. |
| public static Predicate | requestSmallerThan(final long size)
Predicate that returns true if the Content-Size of a request is smaller than a given size. |
| public static Predicate | |
| public static Predicate | |
| public static Predicate | |
| public static Predicate |
| Predicates | back to summary |
|---|---|
| private Predicates() | |
| and | back to summary |
|---|---|
| public static Predicate and(final Predicate... predicates) Creates a predicate that returns true if an only if the given predicates all return true. | |
| authRequired | back to summary |
|---|---|
| public static Predicate authRequired() A predicate that returns true if authentication is required
| |
| contains | back to summary |
|---|---|
| public static Predicate contains(final ExchangeAttribute attribute, final String... values) Returns true if the given attribute is present and contains one of the provided value.
| |
| equals | back to summary |
|---|---|
| public static Predicate equals(final ExchangeAttribute[] attributes) Creates a procedure that returns true if the given ExchangeAttributes are equal.
| |
| exists | back to summary |
|---|---|
| public static Predicate exists(final ExchangeAttribute attribute) Return a predicate that will return true if the given attribute is not null and not empty.
| |
| falsePredicate | back to summary |
|---|---|
| public static Predicate falsePredicate() Predicate which always returns false. | |
| maxContentSize | back to summary |
|---|---|
| public static Predicate maxContentSize(final long size)
Deprecated
Predicate that returns true if the Content-Size of a request is above a
given value.
Use
| |
| minContentSize | back to summary |
|---|---|
| public static Predicate minContentSize(final long size)
Deprecated
Predicate that returns true if the Content-Size of a request is below a
given value.
Use
| |
| not | back to summary |
|---|---|
| public static Predicate not(final Predicate predicate) Creates a predicate that returns true if the given predicate returns false. | |
| or | back to summary |
|---|---|
| public static Predicate or(final Predicate... predicates) Creates a predicate that returns true if any of the given predicates return true. | |
| parse | back to summary |
|---|---|
| public static Predicate parse(final String predicate) parses the predicate string, and returns the result, using the TCCL to load predicate definitions | |
| parse | back to summary |
|---|---|
| public static Predicate parse(final String predicate, ClassLoader classLoader) parses the predicate string, and returns the result
| |
| path | back to summary |
|---|---|
| public static Predicate path(final String path) Creates a predicate that returns true if the given path matches exactly. | |
| paths | back to summary |
|---|---|
| public static Predicate paths(final String... paths) Creates a predicate that returns true if any of the given paths match exactly. | |
| prefix | back to summary |
|---|---|
| public static Predicate prefix(final String path) Creates a predicate that returns true if the given relative path starts with the provided prefix. | |
| prefixes | back to summary |
|---|---|
| public static Predicate prefixes(final String... paths) Creates a predicate that returns true if the relative request path matches any of the provided prefixes. | |
| regex | back to summary |
|---|---|
| public static Predicate regex(final ExchangeAttribute attribute, final String pattern) Creates a predicate that matches the given attribute against a regex. A full match is not required
| |
| regex | back to summary |
|---|---|
| public static Predicate regex(final ExchangeAttribute attribute, final String pattern, boolean requireFullMatch) Creates a predicate that matches the given attribute against a regex.
| |
| regex | back to summary |
|---|---|
| public static Predicate regex(final String attribute, final String pattern, final ClassLoader classLoader, final boolean requireFullMatch) Creates a predicate that matches the given attribute against a regex. | |
| requestLargerThan | back to summary |
|---|---|
| public static Predicate requestLargerThan(final long size) Predicate that returns true if the Content-Size of a request is larger than a given size. | |
| requestSmallerThan | back to summary |
|---|---|
| public static Predicate requestSmallerThan(final long size) Predicate that returns true if the Content-Size of a request is smaller than a given size. | |
| secure | back to summary |
|---|---|
public static Predicate secure()
| |
| suffix | back to summary |
|---|---|
| public static Predicate suffix(final String path) Creates a predicate that returns true if the request path ends with the provided suffix. | |
| suffixes | back to summary |
|---|---|
| public static Predicate suffixes(final String... paths) Creates a predicate that returns true if the request path ends with any of the provided suffixes. | |
| truePredicate | back to summary |
|---|---|
| public static Predicate truePredicate() Prediction which always returns true | |