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 and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ExchangeAttribute | |
| private final Pattern | |
| private final boolean | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public | RegularExpressionPredicate(final String regex, final ExchangeAttribute matchAttribute, final boolean requireFullMatch, boolean caseSensitive)
|
| public | RegularExpressionPredicate(final String regex, final ExchangeAttribute matchAttribute, final boolean requireFullMatch)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String |
| matchAttribute | back to summary |
|---|---|
| private final ExchangeAttribute matchAttribute | |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| requireFullMatch | back to summary |
|---|---|
| private final boolean requireFullMatch | |
| traceEnabled | back to summary |
|---|---|
| private static final boolean traceEnabled | |
| RegularExpressionPredicate | back to summary |
|---|---|
| public RegularExpressionPredicate(final String regex, final ExchangeAttribute matchAttribute, final boolean requireFullMatch, boolean caseSensitive) | |
| RegularExpressionPredicate | back to summary |
|---|---|
| public RegularExpressionPredicate(final String regex, final ExchangeAttribute matchAttribute, final boolean requireFullMatch) | |
| RegularExpressionPredicate | back to summary |
|---|---|
| public RegularExpressionPredicate(final String regex, final ExchangeAttribute matchAttribute) | |
| resolve | back to summary |
|---|---|
| public boolean resolve(final HttpServerExchange value) Implements io.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Predicate | build(final Map<String, Object>
The predicate config config)Implements io. Creates a predicate |
| public String | |
| public String | name()
Implements io. The string representation of the predicate name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public Predicate build(final Map<String, Object> config) Implements io. Doc from io. Creates a predicate | |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the predicate name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |