Class FilePredicate

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

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

      Nested Classes 
      Modifier and Type Class Description
      static class  FilePredicate.Builder  
    • Field Summary

      • Fields inherited from interface io.undertow.predicate.Predicate

        PREDICATE_CONTEXT
    • Constructor Summary

      Constructors 
      Constructor Description
      FilePredicate​(io.undertow.attribute.ExchangeAttribute location)  
      FilePredicate​(io.undertow.attribute.ExchangeAttribute location, boolean requireContent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean resolve​(io.undertow.server.HttpServerExchange value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object