Package com.sodius.oslc.server.services
Class JSPCacheFilter
- java.lang.Object
-
- com.sodius.oslc.server.services.HttpFilter
-
- com.sodius.oslc.server.services.JSPCacheFilter
-
- All Implemented Interfaces:
Filter
public class JSPCacheFilter extends HttpFilter
A filter, designed for JSPs, to inform web browsers not to cache the response content. The filter must be registered for each servlet path that is implemented through JSPs, for which thealias
attribute looks like/my_path/*.jsp
.
-
-
Constructor Summary
Constructors Constructor Description JSPCacheFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
Processes this filter and either executes or blocks the chain.-
Methods inherited from class com.sodius.oslc.server.services.HttpFilter
destroy, doFilter, handleOslcError, init
-
-
-
-
Method Detail
-
doFilter
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
Description copied from class:HttpFilter
Processes this filter and either executes or blocks the chain.Subclasses may throw a
OslcWebApplicationException
to report anOslcError
. This filter will automatically serialize such error in the HTTP response.- Specified by:
doFilter
in classHttpFilter
- Parameters:
request
- the request.response
- the response.chain
- the filter chain to process.- Throws:
IOException
- if an I/O error occurs.ServletException
- if the filter execution fails.
-
-