info.aduna.webapp.filters
Class AliasRedirectFilter

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

public class AliasRedirectFilter
extends ResourceRedirectFilter

Filter that redirects aliased URLs to their canonical versions.

Author:
Herko ter Horst

Constructor Summary
AliasRedirectFilter()
           
 
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

AliasRedirectFilter

public AliasRedirectFilter()
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.