Creating a Taxonomic e-Science

org.cateproject.view.cache
Class CdmObjectPageCacheImpl<T extends eu.etaxonomy.cdm.model.common.CdmBase>

java.lang.Object
  extended by org.cateproject.view.cache.CateCachingFilter
      extended by org.cateproject.view.cache.CdmObjectPageCacheImpl<T>
All Implemented Interfaces:
EventListener, CatePageCache, org.springframework.context.ApplicationListener

public class CdmObjectPageCacheImpl<T extends eu.etaxonomy.cdm.model.common.CdmBase>
extends CateCachingFilter
implements CatePageCache, org.springframework.context.ApplicationListener


Field Summary
protected  String directory
           
protected  Class<T> type
           
 
Constructor Summary
CdmObjectPageCacheImpl()
           
 
Method Summary
protected  String calculateKey(HttpServletRequest httpRequest)
           
 boolean filter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
 void init()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
           
 void setCateContentTypeResolver(CateContentTypeResolver cateContentTypeResolver)
           
 void setDirectory(String directory)
           
 void setFilter(DelegatingPageCachingFilter filter)
           
 void setListCache(net.sf.ehcache.Cache listCache)
           
 void setObjectCache(net.sf.ehcache.Ehcache cache)
           
 void setType(Class<T> type)
           
 
Methods inherited from class org.cateproject.view.cache.CateCachingFilter
acceptsEncoding, acceptsGzipEncoding, buildPage, buildPageInfo, doFilterInternal, logRequestHeaders, setContentType, setCookies, setHeaders, setStatus, writeContent, writeResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected Class<T extends eu.etaxonomy.cdm.model.common.CdmBase> type

directory

protected String directory
Constructor Detail

CdmObjectPageCacheImpl

public CdmObjectPageCacheImpl()
Method Detail

setFilter

public void setFilter(DelegatingPageCachingFilter filter)

setCateContentTypeResolver

public void setCateContentTypeResolver(CateContentTypeResolver cateContentTypeResolver)

setObjectCache

public void setObjectCache(net.sf.ehcache.Ehcache cache)

setListCache

public void setListCache(net.sf.ehcache.Cache listCache)

setType

public void setType(Class<T> type)

setDirectory

public void setDirectory(String directory)

init

public void init()

calculateKey

protected String calculateKey(HttpServletRequest httpRequest)
                       throws Exception
Specified by:
calculateKey in class CateCachingFilter
Throws:
Exception

filter

public boolean filter(HttpServletRequest request,
                      HttpServletResponse response,
                      FilterChain chain)
               throws Exception
Specified by:
filter in interface CatePageCache
Specified by:
filter in class CateCachingFilter
Throws:
Exception

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

Creating a Taxonomic e-Science

Copyright © 2010. All Rights Reserved.