Class FilePredicate

java.lang.Object
io.undertow.servlet.predicate.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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • 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

    Modifier and Type
    Method
    Description
    boolean
    resolve(io.undertow.server.HttpServerExchange value)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FilePredicate

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

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

    • resolve

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

      public String toString()
      Overrides:
      toString in class Object