com.caucho.security
Class Deny

java.lang.Object
  extended by com.caucho.server.security.SecurityConstraint
      extended by com.caucho.security.Deny

public class Deny
extends SecurityConstraint

 <web-app xmlns="http://caucho.com/ns/resin"
          xmlns:sec="urn:java:com.caucho.security">

   <sec:Deny url-pattern="*.jsp"/>

 </web-app>
 


Constructor Summary
Deny()
           
 
Method Summary
 void add(RequestPredicate predicate)
          Adds a match
 void addURLPattern(java.lang.String pattern)
          Sets the url-pattern
 AbstractConstraint getConstraint()
          return the constraint
 java.util.ArrayList<java.lang.String> getMethods(java.lang.String url)
          Returns the HTTP methods.
 boolean isFallthrough()
          Returns true for a fallthrough.
 boolean isMatch(java.lang.String url)
          Returns true for the URL match
 
Methods inherited from class com.caucho.server.security.SecurityConstraint
add, addAuthConstraint, addConstraint, addIPConstraint, addRoleName, addWebResourceCollection, init, setDescription, setDisplayName, setFallthrough, setUserDataConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Deny

public Deny()
Method Detail

addURLPattern

public void addURLPattern(java.lang.String pattern)
Sets the url-pattern

Overrides:
addURLPattern in class SecurityConstraint

add

public void add(RequestPredicate predicate)
Adds a match


isMatch

public boolean isMatch(java.lang.String url)
Returns true for the URL match

Overrides:
isMatch in class SecurityConstraint

isFallthrough

public boolean isFallthrough()
Returns true for a fallthrough.

Overrides:
isFallthrough in class SecurityConstraint

getMethods

public java.util.ArrayList<java.lang.String> getMethods(java.lang.String url)
Returns the HTTP methods.

Overrides:
getMethods in class SecurityConstraint

getConstraint

public AbstractConstraint getConstraint()
return the constraint

Overrides:
getConstraint in class SecurityConstraint