org.mmbase.servlet
Class CharsetRemoverFilter

java.lang.Object
  extended byorg.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

Constructor Summary
CharsetRemoverFilter()
           
 
Method Summary
 void destroy()
          destroys the filter
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
           
 void init(FilterConfig filterConfig)
          Initializes the filter
 void load(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharsetRemoverFilter

public CharsetRemoverFilter()
Method Detail

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