Class FilePredicate

  • All Implemented Interfaces:
    io.undertow.predicate.Predicate

    public class FilePredicate
    extends Object
    implements io.undertow.predicate.Predicate
    Predicate that returns true if the given location corresponds to a regular file.
    Author:
    Stuart Douglas
    • Constructor Detail

      • FilePredicate

        public FilePredicate​(io.undertow.attribute.ExchangeAttribute location)
      • FilePredicate

        public FilePredicate​(io.undertow.attribute.ExchangeAttribute location,
                             boolean requireContent)
    • Method Detail

      • resolve

        public boolean resolve​(io.undertow.server.HttpServerExchange value)
        Specified by:
        resolve in interface io.undertow.predicate.Predicate