Project Wonder 2.0

er.extensions
Class ERXWOResponseCacheKeyPolicy

java.lang.Object
  extended byer.extensions.ERXWOResponseCacheKeyPolicy
All Implemented Interfaces:
ERXWOResponseCache.Policy

public class ERXWOResponseCacheKeyPolicy
extends Object
implements ERXWOResponseCache.Policy


Nested Class Summary
static class ERXWOResponseCacheKeyPolicy.PolicyCacheEntry
           
 
Field Summary
protected  Map cacheKeyMap
           
protected static ERXWOResponseCacheKeyPolicy sharedInstance
           
 
Constructor Summary
ERXWOResponseCacheKeyPolicy()
           
 
Method Summary
 boolean actionNameIsCachableForClass(Class actionClass, String actionName)
           
 ERXMultiKey cacheKeyForRequest(Class actionClass, String actionName, WORequest request)
           
 void createPolicyEntryForClass(Class actionClass, NSArray actionNames, NSArray formKeys, NSArray headerKeys, NSArray cookieKeys)
           
 ERXWOResponseCacheKeyPolicy.PolicyCacheEntry policyCacheEntryForClass(Class actionClass, String actionName)
           
static ERXWOResponseCacheKeyPolicy sharedInstance()
           
 boolean shouldResetCache()
          Can be overridden by subclasses to perform specific checks to see if the cache should be reset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sharedInstance

protected static ERXWOResponseCacheKeyPolicy sharedInstance

cacheKeyMap

protected Map cacheKeyMap
Constructor Detail

ERXWOResponseCacheKeyPolicy

public ERXWOResponseCacheKeyPolicy()
Method Detail

sharedInstance

public static ERXWOResponseCacheKeyPolicy sharedInstance()

createPolicyEntryForClass

public void createPolicyEntryForClass(Class actionClass,
                                      NSArray actionNames,
                                      NSArray formKeys,
                                      NSArray headerKeys,
                                      NSArray cookieKeys)

actionNameIsCachableForClass

public boolean actionNameIsCachableForClass(Class actionClass,
                                            String actionName)
Specified by:
actionNameIsCachableForClass in interface ERXWOResponseCache.Policy

cacheKeyForRequest

public ERXMultiKey cacheKeyForRequest(Class actionClass,
                                      String actionName,
                                      WORequest request)
Specified by:
cacheKeyForRequest in interface ERXWOResponseCache.Policy

policyCacheEntryForClass

public ERXWOResponseCacheKeyPolicy.PolicyCacheEntry policyCacheEntryForClass(Class actionClass,
                                                                             String actionName)

shouldResetCache

public boolean shouldResetCache()
Can be overridden by subclasses to perform specific checks to see if the cache should be reset.

Specified by:
shouldResetCache in interface ERXWOResponseCache.Policy
Returns:
if the cache should be reset.

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.