org.mmbase.servlet
Class CharsetRemoverFilter
java.lang.Object
org.mmbase.servlet.CharsetRemoverFilter
- All Implemented Interfaces:
- Filter
public class CharsetRemoverFilter
- extends Object
- implements Filter
Makes sure that there is no charset on the content type of certain
types. This is mainly because real-player does not understand
that. But it could be used for other content-types as well (There
are probably more lousy client programs out there).
It can be configured by a file WEB-INF/config/charsetremover.properties with
= properties.
- Since:
- MMBase-1.7.4
- Version:
- $Id: CharsetRemoverFilter.java 35969 2009-06-11 06:58:16Z michiel $
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentTypes
Properties contentTypes
watcher
FileWatcher watcher
CharsetRemoverFilter
public CharsetRemoverFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Initializes the filter
- Specified by:
init in interface Filter
- Throws:
ServletException
load
public void load(File file)
doFilter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- destroys the filter
- Specified by:
destroy in interface Filter
MMBase 2.0-SNAPSHOT - null