info.magnolia.cms.util
Class UrlPattern.MatchAllPattern

java.lang.Object
  extended by info.magnolia.cms.util.UrlPattern.MatchAllPattern
All Implemented Interfaces:
UrlPattern, java.io.Serializable
Enclosing interface:
UrlPattern

public static final class UrlPattern.MatchAllPattern
extends java.lang.Object
implements UrlPattern

A default implementation with matches any input.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.cms.util.UrlPattern
UrlPattern.MatchAllPattern
 
Field Summary
 
Fields inherited from interface info.magnolia.cms.util.UrlPattern
MATCH_ALL
 
Constructor Summary
protected UrlPattern.MatchAllPattern()
          Instantiates a new MatchAllPattern instance.
 
Method Summary
 int getLength()
          Returns the pattern length.
 boolean match(java.lang.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
 

Constructor Detail

UrlPattern.MatchAllPattern

protected UrlPattern.MatchAllPattern()
Instantiates a new MatchAllPattern instance. Use the MATCH_ALL constant and don't create new instances.

Method Detail

match

public boolean match(java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.