railo.runtime.cache.util
Class WildCardFilter

java.lang.Object
  extended by railo.runtime.cache.util.WildCardFilter
All Implemented Interfaces:
CacheFilter, CacheKeyFilter

public class WildCardFilter
extends Object
implements CacheKeyFilter

Wildcard Filter


Constructor Summary
WildCardFilter(String wildcard, boolean ignoreCase)
           
 
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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildCardFilter

public WildCardFilter(String wildcard,
                      boolean ignoreCase)
               throws org.apache.oro.text.regex.MalformedPatternException
Parameters:
wildcard -
Throws:
org.apache.oro.text.regex.MalformedPatternException
Method Detail

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.

toString

public String toString()
Overrides:
toString in class Object

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


Copyright © 2012 Railo