com.caucho.server.security
Class WebResourceCollection

java.lang.Object
  extended by com.caucho.server.security.WebResourceCollection

public class WebResourceCollection
extends java.lang.Object

Configuration for the web-resource-collection.


Nested Class Summary
static class WebResourceCollection.HttpMethod
           
 
Field Summary
static java.lang.String[] _methods
           
 
Constructor Summary
WebResourceCollection()
           
 
Method Summary
 void addHttpMethod(java.lang.String method)
          Adds a method
 void addHttpMethodOmission(java.lang.String method)
           
 void addMethod(java.lang.String method)
          Adds a method
 void addURLPattern(java.lang.String pattern)
          Adds a url-pattern
 java.util.ArrayList<java.lang.String> getMethods()
          Returns the methods.
 java.util.ArrayList getURLPatternList()
          Gets the pattern list
 boolean isMatch(java.lang.String url)
          Returns true if there's a pattern match.
 void setDescription(java.lang.String name)
          Sets the description
 void setWebResourceName(java.lang.String name)
          Sets the web-resource-name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_methods

public static final java.lang.String[] _methods
Constructor Detail

WebResourceCollection

public WebResourceCollection()
Method Detail

setWebResourceName

public void setWebResourceName(java.lang.String name)
Sets the web-resource-name.


setDescription

public void setDescription(java.lang.String name)
Sets the description


addURLPattern

public void addURLPattern(java.lang.String pattern)
                   throws java.util.regex.PatternSyntaxException
Adds a url-pattern

Throws:
java.util.regex.PatternSyntaxException

getURLPatternList

public java.util.ArrayList getURLPatternList()
Gets the pattern list


addMethod

public void addMethod(java.lang.String method)
Adds a method


addHttpMethod

public void addHttpMethod(java.lang.String method)
Adds a method


addHttpMethodOmission

public void addHttpMethodOmission(java.lang.String method)

getMethods

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


isMatch

public boolean isMatch(java.lang.String url)
Returns true if there's a pattern match.