org.mmbase.servlet
Class CharsetRemoverFilter

java.lang.Object
  extended byorg.mmbase.servlet.CharsetRemoverFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CharsetRemoverFilter
extends java.lang.Object
implements javax.servlet.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.1.2.6 2005/03/11 11:59:06 michiel Exp $
Author:
Michiel Meeuwissen

Constructor Summary
CharsetRemoverFilter()
           
 
Method Summary
 void destroy()
          destroys the filter
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig filterConfig)
          Initializes the filter
 void load(java.io.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(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Initializes the filter

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

load

public void load(java.io.File file)

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
destroys the filter

Specified by:
destroy in interface javax.servlet.Filter


MMBase build 1.7.4.20050922