Class RewriteCond.ResourceCondition

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int type
      0: -d (is directory ?)
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceCondition()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.String value, Resolver resolver)
      Evaluate the condition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        public int type
         0: -d (is directory ?)
         1: -f (is regular file ?)
         2: -s (is regular file with size ?)
         
    • Constructor Detail

      • ResourceCondition

        public ResourceCondition()
        Default constructor.
    • Method Detail

      • evaluate

        public boolean evaluate​(java.lang.String value,
                                Resolver resolver)
        Description copied from class: RewriteCond.Condition
        Evaluate the condition.
        Specified by:
        evaluate in class RewriteCond.Condition
        Parameters:
        value - The value to evaluate
        resolver - The resolver
        Returns:
        true if the condition is met