Top Inners Fields Constructors Methods
io.undertow.predicate

public Class PathMatchPredicate

extends Object
implements Predicate
Class Inheritance
All Implemented Interfaces
io.undertow.predicate.Predicate
Imports
java.util.Collections, .Map, .Set, java.util.stream.Collectors, io.undertow.server.HttpServerExchange, io.undertow.util.PathMatcher, io.undertow.UndertowLogger

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final PathMatcher<Boolean>
private static final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
PathMatchPredicate(final String... paths)

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

pathMatcherback to summary
private final PathMatcher<Boolean> pathMatcher
traceEnabledback to summary
private static final boolean traceEnabled

Constructor Detail

PathMatchPredicateback to summary
pack-priv PathMatchPredicate(final String... paths)

Method Detail

resolveback to summary
public boolean resolve(final HttpServerExchange value)

Implements io.undertow.predicate.Predicate.resolve.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

io.undertow.predicate back to summary

public Class PathMatchPredicate.Builder

extends Object
implements PredicateBuilder
Class Inheritance
All Implemented Interfaces
io.undertow.predicate.PredicateBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Predicate
build(final Map<String, Object>
The predicate config
config
)

Implements io.undertow.predicate.PredicateBuilder.build.

Creates a predicate

public String
public String
name()

Implements io.undertow.predicate.PredicateBuilder.name.

The string representation of the predicate name.

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

Implements io.undertow.predicate.PredicateBuilder.parameters.

Returns a map of parameters and their types.

public Set<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Builderback to summary
public Builder()

Method Detail

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

Implements io.undertow.predicate.PredicateBuilder.build.

Doc from io.undertow.predicate.PredicateBuilder.build.

Creates a predicate

Parameters
config:Map<String, Object>

The predicate config

Returns:Predicate

The new predicate

Annotations
@Override
defaultParameterback to summary
public String defaultParameter()

Implements io.undertow.predicate.PredicateBuilder.defaultParameter.

Returns:String

Doc from io.undertow.predicate.PredicateBuilder.defaultParameter.

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

Annotations
@Override
nameback to summary
public String name()

Implements io.undertow.predicate.PredicateBuilder.name.

Doc from io.undertow.predicate.PredicateBuilder.name.

The string representation of the predicate name.

Returns:String

The predicate name

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

Implements io.undertow.predicate.PredicateBuilder.parameters.

Doc from io.undertow.predicate.PredicateBuilder.parameters.

Returns a map of parameters and their types.

Annotations
@Override
requiredParametersback to summary
public Set<String> requiredParameters()

Implements io.undertow.predicate.PredicateBuilder.requiredParameters.

Returns:Set<String>

Doc from io.undertow.predicate.PredicateBuilder.requiredParameters.

The required parameters

Annotations
@Override