Class WelcomeFilter

java.lang.Object
org.eclipse.jetty.servlets.WelcomeFilter
All Implemented Interfaces:
jakarta.servlet.Filter

@Deprecated public class WelcomeFilter extends Object implements jakarta.servlet.Filter
Deprecated.
no replacement is offered, use standard Servlet web.xml welcome features
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
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
    Deprecated.
     
    void
    init(jakarta.servlet.FilterConfig filterConfig)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WelcomeFilter

      public WelcomeFilter()
      Deprecated.
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig)
      Deprecated.
      Specified by:
      init in interface jakarta.servlet.Filter
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Deprecated.
      Specified by:
      destroy in interface jakarta.servlet.Filter