| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static String | |
| private transient int | |
| private URLPattern[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | URLPatternSpec(String
a String containing a URLPatternSpec
that identifies the application
specific web resources to which the permission pertains.
All URLPatterns in the URLPatternSpec are relative to the context path
of the deployed web application module, and the same URLPattern must not
occur more than once in a URLPatternSpec. urlPatternSpec)Creates a new URLPatternSpec that identifies the web resources to which a WebResourcePermission or WebUserDataPermission applies. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides javax. |
| private static String | |
| public String | |
| public int | Returns: the integer hash code value for this object.Overrides java.
|
| public boolean | Returns: true if the specified URLPatternSpec is implied by this URLPatternSpec, false if not."this" URLPatternSpec is checked to see if
it implies the argument URLPatternSpec.
that)Determines if the argument URLPatternSpec is "implied by" this URLPatternSpec. |
| private void | |
| public String | toString()
Overrides javax. |
| canonicalSpec | back to summary |
|---|---|
| private String canonicalSpec | |
| EMPTY_STRING | back to summary |
|---|---|
| private static String EMPTY_STRING | |
| hashCodeValue | back to summary |
|---|---|
| private transient int hashCodeValue | |
| urlPatternArray | back to summary |
|---|---|
| private URLPattern[] urlPatternArray | |
| urlPatternList | back to summary |
|---|---|
| private final String urlPatternList | |
| URLPatternSpec | back to summary |
|---|---|
| public URLPatternSpec(String urlPatternSpec) Creates a new URLPatternSpec that identifies the web resources to which a WebResourcePermission or WebUserDataPermission applies. The syntax of the name parameter is as follows:
URLPatternList ::= URLPattern | URLPatternList colon URLPattern
URLPatternSpec ::= URLPattern | URLPattern colon URLPatternList
name ::= URLPatternSpec
The first URLPattern in a URLPatternSpec may be any of the pattern types, exact, path-prefix, extension, or default as defined in the Java Servlet Specification). When a URLPatternSpec includes a URLPatternList, the patterns of the URLPatternList identify the resources to which the permission does NOT apply and depend on the pattern type and value of the first pattern as follows:
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides javax. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getFirstPattern | back to summary |
|---|---|
| private static String getFirstPattern(String urlPatternSpec) | |
| getURLPattern | back to summary |
|---|---|
| public String getURLPattern() This method returns a String containing the first URLPattern in this URLPatternSpec. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this URLPatternSpec properties of the returned hash code must be as follows:
| |
| implies | back to summary |
|---|---|
| public boolean implies(URLPatternSpec that) Determines if the argument URLPatternSpec is "implied by" this URLPatternSpec. For this to be the case, all of the following must be true:
URLPattern matching is performed using the Servlet matching rules where two URL patterns match if they are related as follows:
All of the comparisons described above are case sensitive.
| |
| setURLPatternArray | back to summary |
|---|---|
| private void setURLPatternArray() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javax. Doc from java. Returns a string representation of the object.
| |