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
           
 
Constructor Summary
WebResourceCollection()
           
 
Method Summary
 void addHttpMethod(java.lang.String method)
          Adds a 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
 

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


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.