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,v 1.6 2005/07/11 08:22:24 michiel Exp $
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 build 1.8.1.20060716