com.caucho.rewrite
Class IfFileExists

java.lang.Object
  extended by com.caucho.rewrite.IfFileExists
All Implemented Interfaces:
CacheablePredicate, RequestPredicate

@Configurable
public class IfFileExists
extends java.lang.Object
implements RequestPredicate, CacheablePredicate

Match if the file specified by getRealPath() exists in the filesystem.

 <resin:Allow url-pattern="/admin/*">
                  xmlns:resin="urn:java:com.caucho.resin">
   <resin:IfFileExists/>
 </resin:Allow>
 

RequestPredicates may be used for security and rewrite actions.


Constructor Summary
IfFileExists()
           
 
Method Summary
 boolean isMatch(HttpServletRequest request)
          True if the predicate matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfFileExists

public IfFileExists()
Method Detail

isMatch

public boolean isMatch(HttpServletRequest request)
True if the predicate matches.

Specified by:
isMatch in interface CacheablePredicate
Specified by:
isMatch in interface RequestPredicate
Parameters:
request - the servlet request to test