Modifier and Type | Method and Description |
---|---|
static PredicateHandler |
Handlers.predicate(Predicate predicate,
HttpHandler trueHandler,
HttpHandler falseHandler)
Returns a new predicate handler, that will delegate to one of the two provided handlers based on the value of the
provided predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
PathTemplatePredicate |
class |
RegularExpressionPredicate
A predicate that does a regex match against an exchange.
|
Modifier and Type | Method and Description |
---|---|
static Predicate |
Predicates.and(Predicate... predicates)
Creates a predicate that returns true if an only if the given predicates all
return true.
|
Predicate |
PredicateBuilder.build(Map<String,Object> config)
Creates a predicate
|
Predicate |
PathTemplatePredicate.Builder.build(Map<String,Object> config) |
Predicate |
RegularExpressionPredicate.Builder.build(Map<String,Object> config) |
static Predicate |
Predicates.contains(ExchangeAttribute attribute,
String... values)
Returns true if the given attribute is present and contains one of the provided value
|
static Predicate |
Predicates.exists(ExchangeAttribute attribute)
Return a predicate that will return true if the given attribute is not null and not empty
|
static Predicate |
Predicates.falsePredicate()
predicate that always returns false
|
static Predicate |
Predicates.maxContentSize(long size)
Predicate that returns true if the Content-Size of a request is above a
given value.
|
static Predicate |
Predicates.minContentSize(long size)
Predicate that returns true if the Content-Size of a request is below a
given value.
|
static Predicate |
Predicates.not(Predicate predicate)
Creates a predicate that returns true if the given predicate returns
false
|
static Predicate |
Predicates.or(Predicate... predicates)
Creates a predicate that returns true if any of the given predicates
return true.
|
static Predicate |
PredicateParser.parse(String string,
ClassLoader classLoader) |
static Predicate |
Predicates.path(String path)
creates a predicate that returns true if the given path matches exactly
|
static Predicate |
Predicates.paths(String... paths)
creates a predicate that returns true if any of the given paths match exactly
|
static Predicate |
Predicates.prefix(String path)
creates a predicate that returns true if the given relative path starts with the provided prefix
|
static Predicate |
Predicates.prefixs(String... paths)
creates a predicate that returns true if the relative request path matches any of the provided prefixes
|
static Predicate |
Predicates.regex(ExchangeAttribute attribute,
String pattern)
Creates a predicate that matches the given attribute against a regex.
|
static Predicate |
Predicates.regex(ExchangeAttribute attribute,
String pattern,
boolean requireFullMatch)
Creates a predicate that matches the given attribute against a regex.
|
static Predicate |
Predicates.regex(String attribute,
String pattern,
ClassLoader classLoader,
boolean requireFullMatch)
Creates a predicate that matches the given attribute against a regex.
|
static Predicate |
Predicates.suffix(String path)
creates a predicate that returns true if the request path ends with the provided suffix
|
static Predicate |
Predicates.suffixs(String... paths)
creates a predicate that returns true if the request path ends with any of the provided suffixs
|
static Predicate |
Predicates.truePredicate()
predicate that always returns true
|
Modifier and Type | Method and Description |
---|---|
PredicatesHandler |
PredicatesHandler.addPredicatedHandler(Predicate predicate,
HandlerWrapper handlerWrapper)
Adds a new predicated handler.
|
static Predicate |
Predicates.and(Predicate... predicates)
Creates a predicate that returns true if an only if the given predicates all
return true.
|
static Predicate |
Predicates.not(Predicate predicate)
Creates a predicate that returns true if the given predicate returns
false
|
static Predicate |
Predicates.or(Predicate... predicates)
Creates a predicate that returns true if any of the given predicates
return true.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
PredicateHandler.getPredicate() |
Modifier and Type | Method and Description |
---|---|
PredicateHandler |
PredicateHandler.setPredicate(Predicate predicate) |
Constructor and Description |
---|
PredicateHandler(Predicate predicate,
HttpHandler trueHandler,
HttpHandler falseHandler) |
Modifier and Type | Method and Description |
---|---|
Predicate |
PredicatedHandler.getPredicate() |
Constructor and Description |
---|
PredicatedHandler(Predicate predicate,
HandlerWrapper handler) |
Modifier and Type | Method and Description |
---|---|
ContentEncodingRepository |
ContentEncodingRepository.addEncodingHandler(String encoding,
ContentEncodingProvider encoder,
int priority,
Predicate enabledPredicate) |
Constructor and Description |
---|
ContentEncodedResourceManager(File encodedResourcesRoot,
CachingResourceManager encodedResourceManager,
ContentEncodingRepository contentEncodingRepository,
int minResourceSize,
int maxResourceSize,
Predicate encodingAllowed) |
Modifier and Type | Method and Description |
---|---|
Predicate |
ResourceHandler.getAllowed() |
Predicate |
ResourceHandler.getCachable() |
Modifier and Type | Method and Description |
---|---|
ResourceHandler |
ResourceHandler.setAllowed(Predicate allowed) |
ResourceHandler |
ResourceHandler.setCachable(Predicate cachable) |
Modifier and Type | Class and Description |
---|---|
class |
DispatcherTypePredicate
Predicate that returns true if the dispatcher type matches the specified type.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
DispatcherTypePredicate.Builder.build(Map<String,Object> config) |
Copyright © 2013 JBoss by Red Hat. All rights reserved.