com.caucho.server.dispatch
Class RedirectFilterChain

java.lang.Object
  extended by com.caucho.server.dispatch.RedirectFilterChain
All Implemented Interfaces:
FilterChain

public class RedirectFilterChain
extends java.lang.Object
implements FilterChain

Represents the final servlet in a filter chain.


Constructor Summary
RedirectFilterChain(java.lang.String url)
          Create the redirect filter chain servlet.
RedirectFilterChain(java.lang.String url, java.lang.String queryString)
          Create the redirect filter chain servlet.
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response)
          Invokes the final servlet at the end of the chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectFilterChain

public RedirectFilterChain(java.lang.String url)
Create the redirect filter chain servlet.

Parameters:
url - the URL to redirect to.

RedirectFilterChain

public RedirectFilterChain(java.lang.String url,
                           java.lang.String queryString)
Create the redirect filter chain servlet.

Parameters:
url - the URL to redirect to.
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response)
              throws ServletException,
                     java.io.IOException
Invokes the final servlet at the end of the chain.

Specified by:
doFilter in interface FilterChain
Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
java.io.IOException
Since:
Servlet 2.3