Uses of Interface
io.undertow.predicate.Predicate
-
-
Uses of Predicate in io.undertow
Methods in io.undertow with parameters of type Predicate Modifier and Type Method Description static 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 Predicate Modifier and Type Class Description classAuthenticationRequiredPredicatePredicate that returns true if authentication is required.classContainsPredicateReturns true if the request header is present and contains one of the strings to match.classEqualsPredicateReturns true if all the provided arguments are equal to each otherclassExistsPredicateReturns true if the given attribute is not null and not an empty stringclassFalsePredicateclassIdempotentPredicateA predicate that returns true if the request is idempotent according to the HTTP RFC.classMaxContentSizePredicateDeprecated.classMethodPredicateclassMinContentSizePredicateDeprecated.classNotPredicateclassPathMatchPredicateclassPathPrefixPredicateclassPathSuffixPredicateclassPathTemplatePredicateclassRegularExpressionPredicateA predicate that does a regex match against an exchange.classRequestLargerThanPredicatePredicate that returns true if the Content-Size of a request is larger than a given size.classRequestSmallerThanPredicatePredicate that returns true if the Content-Size of a request is smaller than a given size.classSecurePredicateclassTruePredicateMethods in io.undertow.predicate that return Predicate Modifier and Type Method Description static PredicatePredicates. and(Predicate... predicates)Creates 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 requiredPredicateAuthenticationRequiredPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateContainsPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateEqualsPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateExistsPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateIdempotentPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateMaxContentSizePredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateMethodPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateMinContentSizePredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicatePathMatchPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicatePathPrefixPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicatePathSuffixPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicatePathTemplatePredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicatePredicateBuilder. build(java.util.Map<java.lang.String,java.lang.Object> config)Creates a predicatePredicateRegularExpressionPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateRequestLargerThanPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateRequestSmallerThanPredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)PredicateSecurePredicate.Builder. build(java.util.Map<java.lang.String,java.lang.Object> config)static PredicatePredicates. contains(ExchangeAttribute attribute, java.lang.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 PredicatePredicates. not(Predicate predicate)Creates a predicate that returns true if the given predicate returns false.static PredicatePredicates. or(Predicate... predicates)Creates a predicate that returns true if any of the given predicates return true.static PredicatePredicateParser. parse(java.lang.String string, java.lang.ClassLoader classLoader)static PredicatePredicates. parse(java.lang.String predicate)parses the predicate string, and returns the result, using the TCCL to load predicate definitionsstatic PredicatePredicates. parse(java.lang.String predicate, java.lang.ClassLoader classLoader)parses the predicate string, and returns the resultstatic PredicatePredicates. path(java.lang.String path)Creates a predicate that returns true if the given path matches exactly.static PredicatePredicates. paths(java.lang.String... paths)Creates a predicate that returns true if any of the given paths match exactly.static PredicatePredicates. prefix(java.lang.String path)Creates a predicate that returns true if the given relative path starts with the provided prefix.static PredicatePredicates. prefixes(java.lang.String... paths)Creates a predicate that returns true if the relative request path matches any of the provided prefixes.static PredicatePredicates. regex(ExchangeAttribute attribute, java.lang.String pattern)Creates a predicate that matches the given attribute against a regex.static PredicatePredicates. regex(ExchangeAttribute attribute, java.lang.String pattern, boolean requireFullMatch)Creates a predicate that matches the given attribute against a regex.static PredicatePredicates. regex(java.lang.String attribute, java.lang.String pattern, java.lang.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 PredicatePredicates. suffix(java.lang.String path)Creates a predicate that returns true if the request path ends with the provided suffix.static PredicatePredicates. suffixes(java.lang.String... paths)Creates 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 Predicate Modifier and Type Method Description PredicatesHandlerPredicatesHandler. addPredicatedHandler(Predicate predicate, HandlerWrapper handlerWrapper)Adds a new predicated handler.PredicatesHandlerPredicatesHandler. addPredicatedHandler(Predicate predicate, HandlerWrapper handlerWrapper, HandlerWrapper elseBranch)Adds a new predicated handler.static PredicatePredicates. and(Predicate... predicates)Creates a predicate that returns true if an only if the given predicates all return true.static PredicatePredicates. not(Predicate predicate)Creates a predicate that returns true if the given predicate returns false.static PredicatePredicates. or(Predicate... predicates)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 Predicate Modifier and Type Method Description RoutingHandlerRoutingHandler. add(HttpString method, java.lang.String template, Predicate predicate, HttpHandler handler)RoutingHandlerRoutingHandler. add(java.lang.String method, java.lang.String template, Predicate predicate, HttpHandler handler)RoutingHandlerRoutingHandler. delete(java.lang.String template, Predicate predicate, HttpHandler handler)RoutingHandlerRoutingHandler. get(java.lang.String template, Predicate predicate, HttpHandler handler)RoutingHandlerRoutingHandler. post(java.lang.String template, Predicate predicate, HttpHandler handler)RoutingHandlerRoutingHandler. put(java.lang.String template, Predicate predicate, HttpHandler handler) -
Uses of Predicate in io.undertow.server.handlers
Methods in io.undertow.server.handlers that return Predicate Modifier and Type Method Description PredicatePredicateHandler. getPredicate()Methods in io.undertow.server.handlers with parameters of type Predicate Modifier and Type Method Description PredicateHandlerPredicateHandler. setPredicate(Predicate predicate)Constructors in io.undertow.server.handlers with parameters of type Predicate Constructor Description ActiveRequestTrackerHandler(HttpHandler next, Predicate predicate)ConnectHandler(HttpHandler next, Predicate allowed)HttpContinueAcceptingHandler(HttpHandler next, Predicate accept)PredicateHandler(Predicate predicate, HttpHandler trueHandler, HttpHandler falseHandler)Wrapper(Predicate predicate) -
Uses of Predicate in io.undertow.server.handlers.accesslog
Constructors in io.undertow.server.handlers.accesslog with parameters of type Predicate Constructor Description AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, java.lang.String formatString, ExchangeAttribute attribute, Predicate predicate)AccessLogHandler(HttpHandler next, AccessLogReceiver accessLogReceiver, java.lang.String formatString, java.lang.ClassLoader classLoader, Predicate predicate) -
Uses of Predicate in io.undertow.server.handlers.builder
Methods in io.undertow.server.handlers.builder that return Predicate Modifier and Type Method Description PredicatePredicatedHandler. getPredicate()static PredicatePredicatedHandlersParser. parsePredicate(java.lang.String string, java.lang.ClassLoader classLoader)Constructors in io.undertow.server.handlers.builder with parameters of type Predicate Constructor Description PredicatedHandler(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 Predicate Modifier and Type Method Description ContentEncodingRepositoryContentEncodingRepository. addEncodingHandler(java.lang.String encoding, ContentEncodingProvider encoder, int priority, Predicate enabledPredicate)Constructors in io.undertow.server.handlers.encoding with parameters of type Predicate Constructor Description ContentEncodedResourceManager(java.nio.file.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 Predicate Modifier and Type Method Description PredicateProxyHandler.Builder. getIdempotentRequestPredicate()PredicateProxyHandler. getIdempotentRequestPredicate()Methods in io.undertow.server.handlers.proxy with parameters of type Predicate Modifier and Type Method Description ProxyHandler.BuilderProxyHandler.Builder. setIdempotentRequestPredicate(Predicate idempotentRequestPredicate) -
Uses of Predicate in io.undertow.server.handlers.resource
Methods in io.undertow.server.handlers.resource that return Predicate Modifier and Type Method Description PredicateResourceHandler. getAllowed()PredicateResourceHandler. getCachable()Methods in io.undertow.server.handlers.resource with parameters of type Predicate Modifier and Type Method Description ResourceHandlerResourceHandler. setAllowed(Predicate allowed)ResourceHandlerResourceHandler. setCachable(Predicate cachable)
-