org.apache.myfaces.trinidaddemo.webapp
Class RedirectFilter

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.webapp.RedirectFilter
All Implemented Interfaces:
javax.servlet.Filter

public class RedirectFilter
extends Object
implements javax.servlet.Filter

Servlet filter that ensures the FacesServlet is called before rendering the page. Most useful for getting JSP Faces pages to work correctly.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-demo/src/main/java/oracle/adfdemo/view/faces/webapp/RedirectFilter.java#1 $) $Date: 16-aug-2005.15:12:33 $

Field Summary
static String DEFAULT_URL_PATTERN
           
static String URL_PATTERN_PARAM
           
 
Constructor Summary
RedirectFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_PATTERN_PARAM

public static final String URL_PATTERN_PARAM
See Also:
Constant Field Values

DEFAULT_URL_PATTERN

public static final String DEFAULT_URL_PATTERN
See Also:
Constant Field Values
Constructor Detail

RedirectFilter

public RedirectFilter()
Method Detail

init

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

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.