Class CookieCacheControlFilter
java.lang.Object
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter
- All Implemented Interfaces:
javax.servlet.Filter
Browsers do not expire cache if Cookies have changed. Even if "Vary: Cookie" header is set. This filter intercepts
the Last-Modified and If-Modified-Since headers to include modification of browser cookies.
- Author:
- James Leigh
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CookieCacheControlFilter
public CookieCacheControlFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-