Package io.undertow.predicate
Interface PredicateBuilder
- All Known Implementing Classes:
AuthenticationRequiredPredicate.Builder,ContainsPredicate.Builder,EqualsPredicate.Builder,ExistsPredicate.Builder,IdempotentPredicate.Builder,MaxContentSizePredicate.Builder,MethodPredicate.Builder,MinContentSizePredicate.Builder,PathMatchPredicate.Builder,PathPrefixPredicate.Builder,PathSuffixPredicate.Builder,PathTemplatePredicate.Builder,RegularExpressionPredicate.Builder,SecurePredicate.Builder
public interface PredicateBuilder
An interface that knows how to build a predicate from a textual representation. This is loaded
using a service loader to make it configurable.
This makes it easy to configure conditions based on a string representation
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionCreates a predicatename()The string representation of the predicate name.Returns a map of parameters and their types.
-
Method Details
-
name
String name()The string representation of the predicate name.- Returns:
- The predicate name
-
parameters
Returns a map of parameters and their types. -
requiredParameters
- Returns:
- The required parameters
-
defaultParameter
String defaultParameter()- Returns:
- The default parameter name, or null if it does not have a default parameter
-
build
Creates a predicate- Parameters:
config- The predicate config- Returns:
- The new predicate
-