|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_web.deployment.api.Pattern
public class Pattern
Defines a Pattern object for JACC Allow to check if this pattern is a path prefix pattern, and can return the type of the pattern Implements Comparable interface to sort items
3.1.3.1 and 3.1.3.3 for more details
Constructor Summary | |
---|---|
Pattern(java.lang.String pattern)
Constructor |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Tests if this object is equal to another object |
java.lang.String |
getValue()
Gets the string representation of this object |
int |
hashCode()
Gets the hashcode of this object |
boolean |
isDefaultPattern()
Test if this pattern is the default pattern (equals to "/") |
boolean |
isExactPattern()
Test if this pattern is an exact pattern (not in the other case) |
boolean |
isExtensionPattern()
Test if this pattern is an extension pattern (Starts with ".*") |
boolean |
isMatching(Pattern otherPattern)
Test if this pattern matches another pattern This URL pattern matches another pattern if they are related, by case sensitive comparison, as follows: - their pattern values are String equivalent, or - this pattern is the path-prefix pattern "/*", or - this pattern is a path-prefix pattern (that is, it starts with "/" and ends with "/*") and the other pattern starts with the substring of this pattern, minus its last 2 characters, and the next character of the other pattern, if there is one, is "/", or - this pattern is an extension pattern (that is, it starts with "*.") and the other pattern ends with this pattern, or this pattern is the special default pattern, "/", which matches all other patterns. |
boolean |
isPathPrefix()
Test if this pattern is a path-prefix pattern or not (Starts with "/" and ends with "/*" |
boolean |
isSubstringPattern(java.lang.String substring)
Test if the pattern starts with the given pattern It's the inverse of this definition : The other pattern starts with the substring of this pattern, minus its last 2 characters, and the next character of the other pattern, if there is one, is "/" |
java.lang.String |
toString()
String representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pattern(java.lang.String pattern)
pattern
- string representation of the patternMethod Detail |
---|
public boolean isPathPrefix()
public boolean isExtensionPattern()
public boolean isDefaultPattern()
public boolean isExactPattern()
public boolean isSubstringPattern(java.lang.String substring)
substring
- string to test
public boolean isMatching(Pattern otherPattern)
otherPattern
- pattern to check for matching
3.1.3.3 for the definition of these rules
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- given object to test
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |