railo.runtime.cache.util
Class WildCardFilter
java.lang.Object
railo.runtime.cache.util.WildCardFilter
- All Implemented Interfaces:
- CacheFilter, CacheKeyFilter
public class WildCardFilter
- extends Object
- implements CacheKeyFilter
Wildcard Filter
Method Summary |
boolean |
accept(String key)
Tests if a specified key should be accepted. |
String |
toPattern()
a string pattern of the filter, this is used when the filtering is made natively by the implementation |
String |
toString()
|
WildCardFilter
public WildCardFilter(String wildcard,
boolean ignoreCase)
throws org.apache.oro.text.regex.MalformedPatternException
- Parameters:
wildcard
-
- Throws:
org.apache.oro.text.regex.MalformedPatternException
accept
public boolean accept(String key)
- Description copied from interface:
CacheKeyFilter
- Tests if a specified key should be accepted.
- Specified by:
accept
in interface CacheKeyFilter
- Parameters:
key
- key to check
- Returns:
- if and only if the Entry should be accepted; false otherwise.
- See Also:
CacheKeyFilter.accept(java.lang.String)
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
toPattern
public String toPattern()
- Description copied from interface:
CacheFilter
- a string pattern of the filter, this is used when the filtering is made natively by the implementation
- Specified by:
toPattern
in interface CacheFilter
- Returns:
- string pattern of the filter
- See Also:
CacheFilter.toPattern()
Copyright © 2012 Railo