Class ImageRemapFilter
java.lang.Object
net.sf.basedb.clients.web.servlet.ImageRemapFilter
- All Implemented Interfaces:
Filter
This is a filter that remaps request to images to some other image.
See
ImageRemapper
. 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) void
init
(FilterConfig config)
-
Field Details
-
cacheControl
-
lengthOfContextPath
private int lengthOfContextPath -
contextPath
-
-
Constructor Details
-
ImageRemapFilter
public ImageRemapFilter()
-
-
Method Details
-
init
- Specified by:
init
in interfaceFilter
- Throws:
ServletException
-
destroy
public void destroy() -
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-