info.magnolia.cms.util
Class UrlPattern.MatchAllPattern
java.lang.Object
info.magnolia.cms.util.UrlPattern.MatchAllPattern
- All Implemented Interfaces:
- UrlPattern, Serializable
- Enclosing interface:
- UrlPattern
public static final class UrlPattern.MatchAllPattern
- extends Object
- implements UrlPattern
A default implementation with matches any input.
- See Also:
- Serialized Form
Method Summary |
int |
getLength()
Returns the pattern length. |
boolean |
match(String str)
Does the patter match the given url? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlPattern.MatchAllPattern
protected UrlPattern.MatchAllPattern()
- Instantiates a new MatchAllPattern instance. Use the MATCH_ALL constant and don't create new instances.
match
public boolean match(String str)
- Description copied from interface:
UrlPattern
- Does the patter match the given url?
- Specified by:
match
in interface UrlPattern
- Parameters:
str
- url to match
- Returns:
true
if the given URL matches the pattern- See Also:
UrlPattern.match(java.lang.String)
getLength
public int getLength()
- Description copied from interface:
UrlPattern
- Returns the pattern length. Longer patterns have higher priority.
- Specified by:
getLength
in interface UrlPattern
- Returns:
- pattern length
- See Also:
UrlPattern.getLength()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.