|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.commons.filter.impl.CachingControlFilter
public final class CachingControlFilter
Create caching control headers based on the definition.
Nested Class Summary | |
---|---|
static class |
CachingControlFilter.CachingControlEntry
Reprents a caching control entry. |
Constructor Summary | |
---|---|
CachingControlFilter()
|
Method Summary | |
---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
void |
doFilter(javax.servlet.ServletRequest inRequest,
javax.servlet.ServletResponse inResponse,
javax.servlet.FilterChain inFilterChain)
The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. |
java.util.List |
getCachingControlEntries()
Returns caching control entries. |
java.lang.String |
getDateTimeStrInGMT(java.util.Date date)
Returns the date string in GMT time zone. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
void |
setCachingControlEntries(java.util.List cachingControlEntries)
Sets the caching control entries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingControlFilter()
Method Detail |
---|
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest inRequest, javax.servlet.ServletResponse inResponse, javax.servlet.FilterChain inFilterChain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
inRequest
- -the requestinResponse
- -the responseinFilterChain
- -
the filter chain
javax.servlet.ServletException
- -
if something goes wrong
java.io.IOException
- -
if something goes wrongpublic java.util.List getCachingControlEntries()
public java.lang.String getDateTimeStrInGMT(java.util.Date date)
date
- the date
public void init(javax.servlet.FilterConfig filterConfig)
init
in interface javax.servlet.Filter
filterConfig
- -
the filerConfig.public void setCachingControlEntries(java.util.List cachingControlEntries)
cachingControlEntries
- the caching control entries to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |