com.caucho.server.dispatch
Class MovedFilterChain

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

public class MovedFilterChain
extends java.lang.Object
implements FilterChain

Represents the final servlet in a filter chain.


Constructor Summary
MovedFilterChain(int code, java.lang.String url)
          Create the redirect filter chain servlet.
MovedFilterChain(int code, 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

MovedFilterChain

public MovedFilterChain(int code,
                        java.lang.String url)
Create the redirect filter chain servlet.

Parameters:
url - the URL to redirect to.

MovedFilterChain

public MovedFilterChain(int code,
                        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