|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.security.util.URLPattern
public class URLPattern
Utility class for ModuleConfiguration
. This class is used to generate qualified patterns, HTTP
method sets, complements of HTTP method sets, and HTTP method sets w/ transport restrictions for URL patterns that
are found in the web deployment descriptor.
Field Summary | |
---|---|
static int |
CONFIDENTIAL
|
static int |
INTEGRAL
|
static int |
NA
|
Constructor Summary | |
---|---|
URLPattern(String pat)
Construct an instance of the utility class for WebModuleConfiguration . |
Method Summary | |
---|---|
void |
addAllRoles(Collection<String> collection)
|
void |
addMethod(String method)
Add a method to the union of HTTP methods associated with this URL pattern. |
void |
addRole(String role)
|
boolean |
equals(Object obj)
TODO this is kinda weird without an explanation |
HTTPMethods |
getComplementedHTTPMethods()
|
String |
getComplementedMethods()
|
HTTPMethods |
getHTTPMethods()
|
String |
getMethods()
Return the set of HTTP methods that have been associated with this URL pattern. |
String |
getMethodsWithTransport()
|
static String |
getMethodsWithTransport(HTTPMethods methods,
int transport)
|
String |
getQualifiedPattern(Set<URLPattern> patterns)
Get a qualifed URL pattern relative to a particular set of URL patterns. |
HashSet<String> |
getRoles()
|
int |
getTransport()
|
int |
hashCode()
|
void |
setTransport(String trans)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NA
public static final int INTEGRAL
public static final int CONFIDENTIAL
Constructor Detail |
---|
public URLPattern(String pat)
WebModuleConfiguration
.
pat
- the URL pattern that this instance is to collect information onMethod Detail |
---|
public String getQualifiedPattern(Set<URLPattern> patterns)
patterns
- the set of possible URL patterns that could be used to qualify this pattern
public void addMethod(String method)
method
- the HTTP method to be added to the set.public String getMethods()
public String getComplementedMethods()
public HTTPMethods getHTTPMethods()
public HTTPMethods getComplementedHTTPMethods()
public String getMethodsWithTransport()
public static String getMethodsWithTransport(HTTPMethods methods, int transport)
public void setTransport(String trans)
public int getTransport()
public void addRole(String role)
public void addAllRoles(Collection<String> collection)
public HashSet<String> getRoles()
public boolean equals(Object obj)
equals
in class Object
obj
- object to compare with
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |