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
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()
getPatternString
public String getPatternString()
- Description copied from interface:
UrlPattern
- Returns the pattern string.
- Specified by:
getPatternString
in interface UrlPattern
- Returns:
- pattern string
- See Also:
info.magnolia.cms.util.UrlPattern#getString()
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.