org.directwebremoting.servlet
Class DwrWebContextFilter

java.lang.Object
  extended by org.directwebremoting.servlet.DwrWebContextFilter
All Implemented Interfaces:
javax.servlet.Filter

public class DwrWebContextFilter
extends java.lang.Object
implements javax.servlet.Filter

A Servlet Filter that can be used with other web frameworks to allow use of WebContextFactory. Any servlet threads that have their request URL mapped through a DwrWebContextFilter will have a WebContext available to them.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DwrWebContextFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig newFilterConfig)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwrWebContextFilter

public DwrWebContextFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig newFilterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              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()
Specified by:
destroy in interface javax.servlet.Filter

Copyright 2008