Package org.eclipse.jetty.servlets
Class WelcomeFilter
- java.lang.Object
-
- org.eclipse.jetty.servlets.WelcomeFilter
-
- All Implemented Interfaces:
Filter
public class WelcomeFilter extends Object implements Filter
Welcome Filter This filter can be used to server an index file for a directory when no index file actually exists (thus the web.xml mechanism does not work). This filter will dispatch requests to a directory (URLs ending with /) to the welcome URL determined by the "welcome" init parameter. So if the filter "welcome" init parameter is set to "index.do" then a request to "/some/directory/" will be dispatched to "/some/directory/index.do" and will be handled by any servlets mapped to that URL. Requests to "/some/directory" will be redirected to "/some/directory/".
-
-
Constructor Summary
Constructors Constructor Description WelcomeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain)voidinit(FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(FilterConfig filterConfig)
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilterin interfaceFilter- Throws:
IOExceptionServletException
-
-