- All Implemented Interfaces:
- javax.servlet.Filter
public class HideWebInfFilter
extends Object
implements javax.servlet.Filter
A simple filter that 404s any urls to embedded module WEB-INF directories.
Another solution would be for the container to disable directory browsing, however
files may still be accessed directly. This filter will pre-emptively catch the URL
which means that application code cannot actually handle those URLs (for instance,
to do its own error handling).
There is probably a better way to do this, e.g. a filter to bean proxy in some spring context,
but the sample app doesn't really have a web context of its own to put this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)