Top Description Methods
io.undertow.predicate

public Interface PredicateBuilder

Known Direct Implementers
io.undertow.predicate.RegularExpressionPredicate.Builder, io.undertow.predicate.RequestLargerThanPredicate.Builder, io.undertow.predicate.RequestSmallerThanPredicate.Builder, io.undertow.predicate.SecurePredicate.Builder, io.undertow.predicate.AuthenticationRequiredPredicate.Builder, io.undertow.predicate.ContainsPredicate.Builder, io.undertow.predicate.EqualsPredicate.Builder, io.undertow.predicate.ExistsPredicate.Builder, io.undertow.predicate.IdempotentPredicate.Builder, io.undertow.predicate.MaxContentSizePredicate.Builder, io.undertow.predicate.MethodPredicate.Builder, io.undertow.predicate.MinContentSizePredicate.Builder, io.undertow.predicate.PathMatchPredicate.Builder, io.undertow.predicate.PathPrefixPredicate.Builder, io.undertow.predicate.PathSuffixPredicate.Builder, io.undertow.predicate.PathTemplatePredicate.Builder
Imports
java.util.Map, .Set

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 TypeMethod and Description
public Predicate

Returns:

The new predicate
build
(final Map<String, Object>
The predicate config
config
)

Creates a predicate

public String

Returns:

The default parameter name, or null if it does not have a default parameter
defaultParameter
()

public String

Returns:

The predicate name
name
()

The string representation of the predicate name.

public Map<String, Class<?>>
parameters()

Returns a map of parameters and their types.

public Set<String>

Returns:

The required parameters
requiredParameters
()

Method Detail

buildback to summary
public Predicate build(final Map<String, Object> config)

Creates a predicate

Parameters
config:Map<String, Object>

The predicate config

Returns:Predicate

The new predicate

defaultParameterback to summary
public String defaultParameter()
Returns:String

The default parameter name, or null if it does not have a default parameter

nameback to summary
public String name()

The string representation of the predicate name.

Returns:String

The predicate name

parametersback to summary
public Map<String, Class<?>> parameters()

Returns a map of parameters and their types.

requiredParametersback to summary
public Set<String> requiredParameters()
Returns:Set<String>

The required parameters