com.caucho.filters
Class MD5Filter

java.lang.Object
  extended by com.caucho.filters.MD5Filter
All Implemented Interfaces:
Filter

public class MD5Filter
extends java.lang.Object
implements Filter

Calculates a HTTP Content-MD5 footer following RFC 1864

Since:
Resin 3.1.5

Constructor Summary
MD5Filter()
           
 
Method Summary
 void destroy()
          Any cleanup for the filter.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain nextFilter)
          Creates a wrapper to compress the output.
 void init(FilterConfig config)
          Initialize the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Filter

public MD5Filter()
Method Detail

init

public void init(FilterConfig config)
          throws ServletException
Description copied from interface: Filter
Initialize the filter.

Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain nextFilter)
              throws ServletException,
                     java.io.IOException
Creates a wrapper to compress the output.

Specified by:
doFilter in interface Filter
Parameters:
request - the servlet request
response - the servlet response
nextFilter - the next filter in the chain
Throws:
ServletException
java.io.IOException

destroy

public void destroy()
Any cleanup for the filter.

Specified by:
destroy in interface Filter