com.caucho.rewrite
Class IfSecure

java.lang.Object
  extended by com.caucho.rewrite.IfSecure
All Implemented Interfaces:
RequestPredicate

@Configurable
public class IfSecure
extends java.lang.Object
implements RequestPredicate

Match if the request is secure, i.e. if request.isSecure() matches.

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

RequestPredicates may be used for security and rewrite actions.


Constructor Summary
IfSecure()
           
 
Method Summary
 boolean isMatch(HttpServletRequest request)
          True if the predicate matches.
 void setValue(boolean value)
          Sets the secure value to test against.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfSecure

public IfSecure()
Method Detail

setValue

@Configurable
public void setValue(boolean value)
Sets the secure value to test against. If true matches if isSecure() is true


isMatch

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

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