Package org.eclipse.jetty.servlets
Class WelcomeFilter
- java.lang.Object
-
- org.eclipse.jetty.servlets.WelcomeFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@Deprecated public class WelcomeFilter extends java.lang.Object implements javax.servlet.Filter
Deprecated.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()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
destroy()
Deprecated.void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
Deprecated.void
init(javax.servlet.FilterConfig filterConfig)
Deprecated.
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig)
Deprecated.- Specified by:
init
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
Deprecated.- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
-
destroy
public void destroy()
Deprecated.- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-