//We need our filter only to handle download requests, therefore we only
//need it with GET requests. In addition, it can only work with GET requests
//in its current condition
if ( req.getMethod() == "GET" )
{
HttpServletRequestEx requestEx = new HttpServletRequestEx(req, config.getInitParameter("uriEncoding"));
chain.doFilter(requestEx, response);
}
else
{
chain.doFilter(req, response);