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 PredicateHandlerHandlers.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 TypeClassDescriptionclassPredicate that returns true if authentication is required.classReturns true if the request header is present and contains one of the strings to match.classReturns true if all the provided arguments are equal to each otherclassReturns true if the given attribute is not null and not an empty stringclassclassA predicate that returns true if the request is idempotent according to the HTTP RFC.classPredicate that returns true if the Content-Size of a request is above a given value.classclassPredicate that returns true if the Content-Size of a request is below a given value.classclassclassclassclassclassA predicate that does a regex match against an exchange.classclassMethods in io.undertow.predicate that return PredicateModifier and TypeMethodDescriptionstatic PredicateCreates a predicate that returns true if an only if the given predicates all return true.static PredicatePredicates.authRequired()A predicate that returns true if authentication is requiredCreates a predicatestatic PredicatePredicates.contains(ExchangeAttribute attribute, String... values) Returns true if the given attribute is present and contains one of the provided value.static PredicatePredicates.equals(ExchangeAttribute[] attributes) Creates a procedure that returns true if the given ExchangeAttributes are equal.static PredicatePredicates.exists(ExchangeAttribute attribute) Return a predicate that will return true if the given attribute is not null and not empty.static PredicatePredicates.falsePredicate()Predicate which always returns false.static PredicatePredicates.maxContentSize(long size) Predicate that returns true if the Content-Size of a request is above a given value.static PredicatePredicates.minContentSize(long size) Predicate that returns true if the Content-Size of a request is below a given value.static PredicateCreates a predicate that returns true if the given predicate returns false.static PredicateCreates a predicate that returns true if any of the given predicates return true.static PredicatePredicateParser.parse(String string, ClassLoader classLoader) static Predicateparses the predicate string, and returns the result, using the TCCL to load predicate definitionsstatic PredicatePredicates.parse(String predicate, ClassLoader classLoader) parses the predicate string, and returns the resultstatic PredicateCreates a predicate that returns true if the given path matches exactly.static PredicateCreates a predicate that returns true if any of the given paths match exactly.static PredicateCreates a predicate that returns true if the given relative path starts with the provided prefix.static PredicateCreates a predicate that returns true if the relative request path matches any of the provided prefixes.static PredicatePredicates.regex(ExchangeAttribute attribute, String pattern) Creates a predicate that matches the given attribute against a regex.static PredicatePredicates.regex(ExchangeAttribute attribute, String pattern, boolean requireFullMatch) Creates a predicate that matches the given attribute against a regex.static PredicatePredicates.regex(String attribute, String pattern, ClassLoader classLoader, boolean requireFullMatch) Creates a predicate that matches the given attribute against a regex.static PredicatePredicates.secure()static PredicateCreates a predicate that returns true if the request path ends with the provided suffix.static PredicateCreates a predicate that returns true if the request path ends with any of the provided suffixes.static PredicatePredicates.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 PredicateCreates a predicate that returns true if an only if the given predicates all return true.static PredicateCreates a predicate that returns true if the given predicate returns false.static PredicateCreates 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(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 PredicateModifierConstructorDescriptionHttpContinueAcceptingHandler(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 PredicatePredicatedHandlersParser.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.resource
Methods in io.undertow.server.handlers.resource that return PredicateMethods in io.undertow.server.handlers.resource with parameters of type Predicate