info.magnolia.cms.util
Class UrlPattern.MatchAllPattern

java.lang.Object
  extended by 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

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.
 String getPatternString()
          Returns the pattern string.
 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
 

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(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.