Uses of Interface
io.undertow.predicate.Predicate
Packages that use Predicate
Package
Description
-
Uses of Predicate in io.undertow
Methods in io.undertow with parameters of type PredicateModifier and TypeMethodDescriptionstatic final 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. -
Uses of Predicate in io.undertow.predicate
Classes in io.undertow.predicate that implement PredicateModifier and TypeClassDescriptionclass
Predicate that returns true if authentication is required.class
Returns true if the request header is present and contains one of the strings to match.class
Returns true if all the provided arguments are equal to each otherclass
Returns true if the given attribute is not null and not an empty stringclass
class
A predicate that returns true if the request is idempotent according to the HTTP RFC.class
Deprecated.class
class
Deprecated.class
class
class
class
class
class
A predicate that does a regex match against an exchange.class
Predicate that returns true if the Content-Size of a request is larger than a given size.class
Predicate that returns true if the Content-Size of a request is smaller than a given size.class
class
Methods in io.undertow.predicate that return PredicateModifier and TypeMethodDescriptionstatic Predicate
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 requiredCreates a predicatestatic 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) Deprecated.static Predicate
Predicates.minContentSize
(long size) Deprecated.static Predicate
Creates a predicate that returns true if the given predicate returns false.static Predicate
Creates a predicate that returns true if any of the given predicates return true.static final Predicate
PredicateParser.parse
(String string, ClassLoader classLoader) static Predicate
parses the predicate string, and returns the result, using the TCCL to load predicate definitionsstatic Predicate
Predicates.parse
(String predicate, ClassLoader classLoader) parses the predicate string, and returns the resultstatic Predicate
Creates a predicate that returns true if the given path matches exactly.static Predicate
Creates a predicate that returns true if any of the given paths match exactly.static Predicate
Creates a predicate that returns true if the given relative path starts with the provided prefix.static Predicate
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.requestLargerThan
(long size) Predicate that returns true if the Content-Size of a request is larger than a given size.static Predicate
Predicates.requestSmallerThan
(long size) Predicate that returns true if the Content-Size of a request is smaller than a given size.static Predicate
Predicates.secure()
static Predicate
Creates a predicate that returns true if the request path ends with the provided suffix.static Predicate
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 trueMethods in io.undertow.predicate with parameters of type PredicateModifier and TypeMethodDescriptionPredicatesHandler.addPredicatedHandler
(Predicate predicate, HandlerWrapper handlerWrapper) Adds a new predicated handler.PredicatesHandler.addPredicatedHandler
(Predicate predicate, HandlerWrapper handlerWrapper, HandlerWrapper elseBranch) Adds a new predicated handler.static Predicate
Creates a predicate that returns true if an only if the given predicates all return true.static Predicate
Creates a predicate that returns true if the given predicate returns false.static Predicate
Creates a predicate that returns true if any of the given predicates return true. -
Uses of Predicate in io.undertow.server
Methods in io.undertow.server with parameters of type PredicateModifier and TypeMethodDescriptionRoutingHandler.add
(HttpString method, String template, Predicate predicate, HttpHandler handler) RoutingHandler.add
(String method, String template, Predicate predicate, HttpHandler handler) RoutingHandler.delete
(String template, Predicate predicate, HttpHandler handler) RoutingHandler.get
(String template, Predicate predicate, HttpHandler handler) RoutingHandler.post
(String template, Predicate predicate, HttpHandler handler) RoutingHandler.put
(String template, Predicate predicate, HttpHandler handler) -
Uses of Predicate in io.undertow.server.handlers
Methods in io.undertow.server.handlers that return PredicateMethods in io.undertow.server.handlers with parameters of type PredicateConstructors in io.undertow.server.handlers with parameters of type PredicateModifierConstructorDescriptionConnectHandler
(HttpHandler next, Predicate allowed) HttpContinueAcceptingHandler
(HttpHandler next, Predicate accept) PredicateHandler
(Predicate predicate, HttpHandler trueHandler, HttpHandler falseHandler) -
Uses of Predicate in io.undertow.server.handlers.accesslog
Constructors in io.undertow.server.handlers.accesslog with parameters of type PredicateModifierConstructorDescriptionAccessLogHandler
(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ExchangeAttribute attribute, Predicate predicate) AccessLogHandler
(HttpHandler next, AccessLogReceiver accessLogReceiver, String formatString, ClassLoader classLoader, Predicate predicate) -
Uses of Predicate in io.undertow.server.handlers.builder
Methods in io.undertow.server.handlers.builder that return PredicateModifier and TypeMethodDescriptionPredicatedHandler.getPredicate()
static Predicate
PredicatedHandlersParser.parsePredicate
(String string, ClassLoader classLoader) Constructors in io.undertow.server.handlers.builder with parameters of type PredicateModifierConstructorDescriptionPredicatedHandler
(Predicate predicate, HandlerWrapper handler) PredicatedHandler
(Predicate predicate, HandlerWrapper handler, HandlerWrapper elseHandler) -
Uses of Predicate in io.undertow.server.handlers.encoding
Methods in io.undertow.server.handlers.encoding with parameters of type PredicateModifier and TypeMethodDescriptionContentEncodingRepository.addEncodingHandler
(String encoding, ContentEncodingProvider encoder, int priority, Predicate enabledPredicate) Constructors in io.undertow.server.handlers.encoding with parameters of type PredicateModifierConstructorDescriptionContentEncodedResourceManager
(Path encodedResourcesRoot, CachingResourceManager encodedResourceManager, ContentEncodingRepository contentEncodingRepository, int minResourceSize, int maxResourceSize, Predicate encodingAllowed) -
Uses of Predicate in io.undertow.server.handlers.proxy
Methods in io.undertow.server.handlers.proxy that return PredicateModifier and TypeMethodDescriptionProxyHandler.Builder.getIdempotentRequestPredicate()
ProxyHandler.getIdempotentRequestPredicate()
Methods in io.undertow.server.handlers.proxy with parameters of type PredicateModifier and TypeMethodDescriptionProxyHandler.Builder.setIdempotentRequestPredicate
(Predicate idempotentRequestPredicate) -
Uses of Predicate in io.undertow.server.handlers.resource
Methods in io.undertow.server.handlers.resource that return PredicateMethods in io.undertow.server.handlers.resource with parameters of type PredicateModifier and TypeMethodDescriptionResourceHandler.setAllowed
(Predicate allowed) ResourceHandler.setCachable
(Predicate cachable)