public class URLPattern extends 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(String pat,
Set<String> methods,
boolean isHttpMethodExcluded)
Construct an instance of the utility class for
WebModuleConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethods(Set<String> methods,
boolean isExcluded)
Add a method to the union of HTTP methods associated with this URL pattern.
|
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.
|
int |
getTransport() |
int |
hashCode() |
boolean |
removeMethods(URLPattern other) |
void |
setTransport(String trans) |
public static final int NA
public static final int INTEGRAL
public static final int CONFIDENTIAL
public URLPattern(String pat, Set<String> methods, boolean isHttpMethodExcluded)
WebModuleConfiguration.pat - the URL pattern that this instance is to collect information onpublic String getQualifiedPattern(Set<URLPattern> patterns)
patterns - the set of possible URL patterns that could be used to qualify this patternpublic void addMethods(Set<String> methods, boolean isExcluded)
methods - the HTTP methods to be added to the set.public boolean removeMethods(URLPattern other)
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 boolean equals(Object obj)
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.