CacheFilter Question

That implementation of CacheFilter was merely a prrof-of-concept for
the filter API, meant to make sure that we could implement that kind
of filter. It was written by Antonio Ramirez, I am not sure it's
really meant to be used (Antonio are you around ?)

Anselm.

Ranjani Ramamurthy writes:
 > Hi,	
 > 	I am using a CacheFilter in my Resource and am having a problem
 > 	with modifying the value of the default attribute.
 > 
 > 	I would like to be able to change the value of defaultMaxAge
 > 	attribute. I *derived* a class from CacheFilter ( as all attributes
 > 	are protected variables ) - and tried using a setValue();
 > 
 > 	i.e.
 > 	int index = CacheFilter.ATTR_DEFAULT_MAX_AGE; ==> which gives me
 > 				  the index into the AttributeRegistry
 > 	Integer new_val = new Integer(<new value>);
 > 	setValue(index,new_val);
 > 	
 > 	This compiles just fine - but on execution, just hangs - like
 > 	it is stuck on a wait() someplace.
 > 
 > 	I have looked at the source code for both Resource as well
 > 	as AttributeHolder and it does'nt seem like any exception is
 > 	being thrown. I also checked to see if ATTR_DEFAULT_MAX_AGE
 > 	matches the actual index in the registry - and it does..
 > 
 > 	So whats going on.. All I want to do is to modify the default
 > 	value in CacheFilter. Can somebody please throw some light on
 > 	this.
 > 
 > 	Thanks in advance,
 > 
 > 	Ranjani
 > -- 
 > 
 > Ranjani Ramamurthy
 > ranjani@cs.cornell.edu
 > 
 > 

Received on Thursday, 24 April 1997 02:59:14 UTC