All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javax.servlet.GenericServlet | +----javax.servlet.http.HttpServlet | +----com.oreilly.servlet.CacheHttpServlet
In order to be safe, if this class detects that the servlet's query string, extra path info, or servlet path has changed, the cache is invalidated and recreated. However, this class does not invalidate the cache based on differing request headers or cookies; for servlets that vary their output based on these values (i.e. a session tracking servlet) this class should probably not be used.
No caching is performed for POST requests.
CacheHttpServletResponse and CacheServletOutputStream are helper classes to this class and should not be used directly.
This class has been built against Servlet API 2.2. Using it with previous Servlet API versions should work; using it with future API versions likely won't work.
public CacheHttpServlet()
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
All Packages Class Hierarchy This Package Previous Next Index