Predicate
public class RegularExpressionPredicate extends java.lang.Object implements Predicate
By default this match is done against the relative URI, however it is possible to set it to match against other exchange attributes.
Modifier and Type | Class | Description |
---|---|---|
static class |
RegularExpressionPredicate.Builder |
PREDICATE_CONTEXT
Constructor | Description |
---|---|
RegularExpressionPredicate(java.lang.String regex,
ExchangeAttribute matchAttribute) |
|
RegularExpressionPredicate(java.lang.String regex,
ExchangeAttribute matchAttribute,
boolean requireFullMatch) |
|
RegularExpressionPredicate(java.lang.String regex,
ExchangeAttribute matchAttribute,
boolean requireFullMatch,
boolean caseSensitive) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
resolve(HttpServerExchange value) |
public RegularExpressionPredicate(java.lang.String regex, ExchangeAttribute matchAttribute, boolean requireFullMatch, boolean caseSensitive)
public RegularExpressionPredicate(java.lang.String regex, ExchangeAttribute matchAttribute, boolean requireFullMatch)
public RegularExpressionPredicate(java.lang.String regex, ExchangeAttribute matchAttribute)
public boolean resolve(HttpServerExchange value)
Copyright © 2018. All rights reserved.