public class URLPattern
extends java.lang.Object
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.Modifier and Type | Field and Description |
---|---|
static int |
CONFIDENTIAL |
static int |
INTEGRAL |
static int |
NA |
Constructor and Description |
---|
URLPattern(java.lang.String pat,
java.util.Set<java.lang.String> methods,
boolean isHttpMethodExcluded)
Construct an instance of the utility class for
WebModuleConfiguration . |
Modifier and Type | Method and Description |
---|---|
void |
addMethods(java.util.Set<java.lang.String> methods,
boolean isExcluded)
Add a method to the union of HTTP methods associated with this URL pattern.
|
boolean |
equals(java.lang.Object obj)
TODO this is kinda weird without an explanation
|
HTTPMethods |
getComplementedHTTPMethods() |
java.lang.String |
getComplementedMethods() |
HTTPMethods |
getHTTPMethods() |
java.lang.String |
getMethods()
Return the set of HTTP methods that have been associated with this URL pattern.
|
java.lang.String |
getMethodsWithTransport() |
static java.lang.String |
getMethodsWithTransport(HTTPMethods methods,
int transport) |
java.lang.String |
getQualifiedPattern(java.util.Set<URLPattern> patterns)
Get a qualifed URL pattern relative to a particular set of URL patterns.
|
int |
getTransport() |
int |
hashCode() |
boolean |
removeMethods(URLPattern other) |
void |
setTransport(java.lang.String trans) |
public static final int NA
public static final int INTEGRAL
public static final int CONFIDENTIAL
public URLPattern(java.lang.String pat, java.util.Set<java.lang.String> methods, boolean isHttpMethodExcluded)
WebModuleConfiguration
.pat
- the URL pattern that this instance is to collect information onpublic java.lang.String getQualifiedPattern(java.util.Set<URLPattern> patterns)
patterns
- the set of possible URL patterns that could be used to qualify this patternpublic void addMethods(java.util.Set<java.lang.String> methods, boolean isExcluded)
methods
- the HTTP methods to be added to the set.public boolean removeMethods(URLPattern other)
public java.lang.String getMethods()
public java.lang.String getComplementedMethods()
public HTTPMethods getHTTPMethods()
public HTTPMethods getComplementedHTTPMethods()
public java.lang.String getMethodsWithTransport()
public static java.lang.String getMethodsWithTransport(HTTPMethods methods, int transport)
public void setTransport(java.lang.String trans)
public int getTransport()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to compare withpublic int hashCode()
hashCode
in class java.lang.Object