info.aduna.webapp.filters
Class WelcomeRedirectFilter

java.lang.Object
  extended by info.aduna.webapp.filters.ResourceRedirectFilter
      extended by info.aduna.webapp.filters.WelcomeRedirectFilter
All Implemented Interfaces:
javax.servlet.Filter

public class WelcomeRedirectFilter
extends ResourceRedirectFilter

Filter that redirects requests ending in "/" to a "welcome view", e.g. index.jsp or welcome.view.

Author:
Herko ter Horst

Constructor Summary
WelcomeRedirectFilter()
           
 
Method Summary
protected  String getCanonicalPath(String originalPath)
           
protected  void initialize()
           
 
Methods inherited from class info.aduna.webapp.filters.ResourceRedirectFilter
destroy, doFilter, getFilterConfig, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WelcomeRedirectFilter

public WelcomeRedirectFilter()
Method Detail

initialize

protected void initialize()
                   throws javax.servlet.ServletException
Specified by:
initialize in class ResourceRedirectFilter
Throws:
javax.servlet.ServletException

getCanonicalPath

protected String getCanonicalPath(String originalPath)
Specified by:
getCanonicalPath in class ResourceRedirectFilter
Returns:
the canonical path for the specified original path, or null if the original path should be handled as-is according to this filter


Copyright © 1997-2008 Aduna. All Rights Reserved.