Modifier and Type | Method and Description |
---|---|
static HttpContinueAcceptingHandler | Handlers.httpContinueAccepting(HttpHandler next, Predicate accept) Returns a handler that sends back a HTTP 100 continue response if the given predicate resolves to true. |
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 | AuthenticationRequiredPredicate Predicate that returns true if authentication is required. |
class | ContainsPredicate Returns true if the request header is present and contains one of the strings to match. |
class | PathTemplatePredicate |
class | RegularExpressionPredicate A predicate that does a regex match against an exchange. |
class | SecurePredicate |
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. |
static Predicate | Predicates.authRequired() A predicate that returns true if authentication is required |
Predicate | SecurePredicate.Builder.build(Map<String,Object> config) |
Predicate | RegularExpressionPredicate.Builder.build(Map<String,Object> config) |
Predicate | PredicateBuilder.build(Map<String,Object> config) Creates a predicate |
Predicate | PathTemplatePredicate.Builder.build(Map<String,Object> config) |
Predicate | ContainsPredicate.Builder.build(Map<String,Object> config) |
Predicate | AuthenticationRequiredPredicate.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.equals(ExchangeAttribute[] attributes) Creates a procedure that returns true if the given ExchangeAttributes are equal. |
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 which 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 | Predicates.parse(String predicate) parses the predicate string, and returns the result, using the TCCL to load predicate definitions |
static Predicate | Predicates.parse(String predicate, ClassLoader classLoader) parses the predicate string, and returns the result |
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.prefixes(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.secure() |
static Predicate | Predicates.suffix(String path) Creates a predicate that returns true if the request path ends with the provided suffix. |
static Predicate | Predicates.suffixes(String... paths) Creates a predicate that returns true if the request path ends with any of the provided suffixes. |
static Predicate | Predicates.truePredicate() Prediction which always returns true |
Modifier and Type | Method and Description |
---|---|
PredicatesHandler | PredicatesHandler.addPredicatedHandler(Predicate predicate, HandlerWrapper handlerWrapper) Adds a new predicated handler. |
PredicatesHandler | PredicatesHandler.addPredicatedHandler(Predicate predicate, HandlerWrapper handlerWrapper, HandlerWrapper elseBranch) 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 |
---|---|
RoutingHandler | RoutingHandler.add(HttpString method, String template, Predicate predicate, HttpHandler handler) |
RoutingHandler | RoutingHandler.add(String method, String template, Predicate predicate, HttpHandler handler) |
RoutingHandler | RoutingHandler.delete(String template, Predicate predicate, HttpHandler handler) |
RoutingHandler | RoutingHandler.get(String template, Predicate predicate, HttpHandler handler) |
RoutingHandler | RoutingHandler.post(String template, Predicate predicate, HttpHandler handler) |
RoutingHandler | RoutingHandler.put(String template, Predicate predicate, HttpHandler handler) |
Modifier and Type | Method and Description |
---|---|
Predicate | PredicateHandler.getPredicate() |
Modifier and Type | Method and Description |
---|---|
PredicateHandler | PredicateHandler.setPredicate(Predicate predicate) |
Constructor and Description |
---|
ConnectHandler(HttpHandler next, Predicate allowed) |
HttpContinueAcceptingHandler(HttpHandler next, Predicate accept) |
PredicateHandler(Predicate predicate, HttpHandler trueHandler, HttpHandler falseHandler) |
Constructor and Description |
---|
AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ClassLoader classLoader, Predicate predicate) |
AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ExchangeAttribute attribute, Predicate predicate) |
Modifier and Type | Method and Description |
---|---|
Predicate | PredicatedHandler.getPredicate() |
static Predicate | PredicatedHandlersParser.parsePredicate(String string, ClassLoader classLoader) |
Constructor and Description |
---|
PredicatedHandler(Predicate predicate, HandlerWrapper handler) |
PredicatedHandler(Predicate predicate, HandlerWrapper handler, HandlerWrapper elseHandler) |
Modifier and Type | Method and Description |
---|---|
ContentEncodingRepository | ContentEncodingRepository.addEncodingHandler(String encoding, ContentEncodingProvider encoder, int priority, Predicate enabledPredicate) |
Constructor and Description |
---|
ContentEncodedResourceManager(Path 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 | DirectoryPredicate Predicate that returns true if the given location corresponds to a directory. |
class | DispatcherTypePredicate Predicate that returns true if the dispatcher type matches the specified type. |
class | FilePredicate Predicate that returns true if the given location corresponds to a regular file. |
Modifier and Type | Method and Description |
---|---|
Predicate | FilePredicate.Builder.build(Map<String,Object> config) |
Predicate | DispatcherTypePredicate.Builder.build(Map<String,Object> config) |
Predicate | DirectoryPredicate.Builder.build(Map<String,Object> config) |
Copyright © 2015 JBoss by Red Hat. All rights reserved.