|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.web.filter.CacheFilter
com.jivesoftware.base.util.JiveCacheFilter
public class JiveCacheFilter
A filter which allows page level caching for anonymous users. Any uri's to which this filter is mapped will be served from cache. Since we can't do page level caching for logged in users (due to the personalized views they see), they will bypass the cache entirely, and their requests will actually result in calls through to the action and underlying api. This filter can be configured with the Jive Properties
Field Summary |
---|
Fields inherited from class com.opensymphony.oscache.web.filter.CacheFilter |
---|
EXPIRES_OFF, EXPIRES_ON, EXPIRES_TIME, FRAGMENT_AUTODETECT, FRAGMENT_NO, FRAGMENT_YES, HEADER_ACCEPT_ENCODING, HEADER_CACHE_CONTROL, HEADER_CONTENT_ENCODING, HEADER_CONTENT_TYPE, HEADER_EXPIRES, HEADER_IF_MODIFIED_SINCE, HEADER_LAST_MODIFIED, LAST_MODIFIED_INITIAL, LAST_MODIFIED_OFF, LAST_MODIFIED_ON, MAX_AGE_NO_INIT, MAX_AGE_TIME, NOCACHE_OFF, NOCACHE_SESSION_ID_IN_URL |
Constructor Summary | |
---|---|
JiveCacheFilter()
|
Method Summary | |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Tests for requests by anonymous users and passes them up to the superclass to be served from the page cache. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
void |
jivePropertyAdded(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is added |
void |
jivePropertyModified(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is modified |
void |
jivePropertyRemoved(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is removed |
Methods inherited from class com.opensymphony.oscache.web.filter.CacheFilter |
---|
acceptsGZipEncoding, createCacheGroups, createCacheKey, destroy, getCacheControlMaxAge, getCacheGroupsProvider, getCacheKeyProvider, getCacheScope, getCron, getDisableCacheOnMethods, getExpires, getExpiresRefreshPolicy, getFragment, getLastModified, getNocache, getTime, isCacheable, isCacheable, isFilteredBefore, isFragment, setCacheControlMaxAge, setCacheGroupsProvider, setCacheKeyProvider, setCacheScope, setCron, setDisableCacheOnMethods, setExpires, setExpiresRefreshPolicy, setFragment, setLastModified, setNocache, setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiveCacheFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig)
init
in interface javax.servlet.Filter
init
in class com.opensymphony.oscache.web.filter.CacheFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws javax.servlet.ServletException, java.io.IOException
doFilter
in interface javax.servlet.Filter
doFilter
in class com.opensymphony.oscache.web.filter.CacheFilter
request
- The servlet requestresponse
- The servlet responsechain
- The filter chain
javax.servlet.ServletException
- IOException
java.io.IOException
public void jivePropertyAdded(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyAdded
in interface JivePropertyListener
jivePropertyEvent
- event firedpublic void jivePropertyRemoved(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyRemoved
in interface JivePropertyListener
jivePropertyEvent
- event firedpublic void jivePropertyModified(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyModified
in interface JivePropertyListener
jivePropertyEvent
- event fired
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |