public class FrameworkFilter extends Object implements javax.servlet.Filter, MMBaseStarter
UrlConverter.
Regular expressions that define URL's to be excluded from filtering should be listed in the
'excludes' parameter in web.xml.| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMS_KEY |
| Constructor and Description |
|---|
FrameworkFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy method
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Filters a request and delegates it to UrlConverter if needed.
|
static long |
getChainedRequests() |
static long |
getErrorRequests() |
static long |
getForwardedRequests() |
static long |
getIncludedRequests() |
MMBase |
getMMBase()
Returns the currently set MMBase object.
|
static String |
getPath(javax.servlet.http.HttpServletRequest request) |
void |
init(javax.servlet.FilterConfig config)
Initialize the filter, called on webapp startup
|
void |
setInitException(javax.servlet.ServletException se)
If something went wrong (an exception occured), the caller may is informed by a call to this
method.
|
void |
setMMBase(MMBase mm)
Set MMBase object after initializion, in the caller.
|
public static final String PARAMS_KEY
public static long getForwardedRequests()
public static long getIncludedRequests()
public static long getChainedRequests()
public static long getErrorRequests()
public MMBase getMMBase()
MMBaseStartergetMMBase in interface MMBaseStarterpublic void setMMBase(MMBase mm)
MMBaseStartersetMMBase in interface MMBaseStarterpublic void setInitException(javax.servlet.ServletException se)
MMBaseStartersetInitException in interface MMBaseStarterpublic void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - object containing init parameters specifiedjavax.servlet.ServletException - thrown when an exception occurs in the web.xmlpublic void destroy()
destroy in interface javax.servlet.Filterpublic static String getPath(javax.servlet.http.HttpServletRequest request)
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterrequest - incoming requestresponse - outgoing responsechain - a chain object, provided for by the servlet containerjavax.servlet.ServletException - thrown when an exception occursIOException - thrown when an exception occursMMBase 1.9-SNAPSHOT - ${javadoctimestamp}