Class ImageRemapFilter
- java.lang.Object
-
- net.sf.basedb.clients.web.servlet.ImageRemapFilter
-
- All Implemented Interfaces:
Filter
public class ImageRemapFilter extends Object implements Filter
This is a filter that remaps request to images to some other image. SeeImageRemapper
. The remap is done internally on the server and is not visible for the web client. It is possible to set a cache control header to control the time images are cached.- Since:
- 3.4
- Author:
- Nicklas
-
-
Field Summary
Fields Modifier and Type Field Description private String
cacheControl
private String
contextPath
private int
lengthOfContextPath
-
Constructor Summary
Constructors Constructor Description ImageRemapFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void
init(FilterConfig config)
-
-
-
Method Detail
-
init
public void init(FilterConfig config) throws ServletException
- Specified by:
init
in interfaceFilter
- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
-