code: public void doFilter(final HttpRequest httpRequest, MessageEvent e) throws IOException, ServletException  {
      	
      	HttpServletRequest servletRequest = new NettyHttpServletRequestAdaptor(httpRequest, e.getChannel());
          final HttpServletRequest hsRequest = (HttpServletRequest) servletRequest;
          if (urlRewriter != null) {
              String newUrl = urlRewriter.processRequest(hsRequest);
              if(!newUrl.equals(httpRequest.getUri()))
              {
              	if (log.isDebugEnabled())
              		log.debug("request rewrited from : [" + httpRequest.getUri() + "] to : ["+newUrl+"]");
              	httpRequest.setUri(newUrl);
              }
              else
              {
              	if (log.isDebugEnabled())
              		log.debug("request not rewrited : [" + httpRequest.getUri() + "]");
              }
          } else {
              if (log.isDebugEnabled()) {
                  log.debug("urlRewriter engine not loaded ignoring request (could be a conf file problem)");
              }
          }
      }
docs: The main method called for each request that this filter is mapped for.
  
  @param request  the request to filter
  @throws IOException
  @throws ServletException