public class WelcomeFileFilter
extends java.lang.Object
implements javax.servlet.Filter
| Constructor and Description |
|---|
WelcomeFileFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
If the URI indicates a context, or a subdirectory within a particular
context, but does not specify a filename, the request is redirected to
one of the default welcome files, assuming they are provided in the web.xml file.
|
void |
init(javax.servlet.FilterConfig config)
During the init method, we have to get any predefined welcome files
for the current ServletContext.
|
public void destroy()
destroy in interface javax.servlet.FilterFilter.destroy()public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - The filter configuration datajavax.servlet.ServletException