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 HttpContinueAcceptingHandlerHandlers.httpContinueAccepting(HttpHandler next, Predicate accept) Returns a handler that sends back a HTTP 100 continue response if the given predicate resolves to true.static 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.classDeprecated.classclassDeprecated.classclassclassclassclassclassA predicate that does a regex match against an exchange.classPredicate that returns true if the Content-Size of a request is larger than a given size.classPredicate that returns true if the Content-Size of a request is smaller than a given size.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) Deprecated.static PredicatePredicates.minContentSize(long size) Deprecated.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 final 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.requestLargerThan(long size) Predicate that returns true if the Content-Size of a request is larger than a given size.static PredicatePredicates.requestSmallerThan(long size) Predicate that returns true if the Content-Size of a request is smaller than a given size.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(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 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.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)