| java.lang.Object org.mmbase.framework.FrameworkFilter
FrameworkFilter | public class FrameworkFilter implements Filter,MMBaseStarter(Code) | | Requestfilter that filters out all URL's looking for virtual 'userfriendly' links that have a
corresponding page (technical URL) within the website. When the recieved URL is not
recognized by the framework as an 'userfriendly' one, it just gets forwarded in its original
form. The filtering and conversion to an URL pointing to an existing JSP template is done by
an UrlConverter, of which the framework extends.
Regular expressions that define URL's to be excluded from filtering should be listed in the
'excludes' parameter in web.xml.
author: André van Toly version: $Id: FrameworkFilter.java,v 1.21 2008/02/03 17:33:56 nklasens Exp $ |
destroy | public void destroy()(Code) | | Destroy method
|
doFilter | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException(Code) | | Filters a request and delegates it to UrlConverter if needed.
URL conversion is only done when the URI does not match one of the excludes in web.xml.
Waits for MMBase to be up.
Parameters: request - incoming request Parameters: response - outgoing response Parameters: chain - a chain object, provided for by the servlet container throws: ServletException - thrown when an exception occurs throws: IOException - thrown when an exception occurs |
init | public void init(FilterConfig config) throws ServletException(Code) | | Initialize the filter, called on webapp startup
Parameters: config - object containing init parameters specified throws: ServletException - thrown when an exception occurs in the web.xml |
|
|