Class ServletBinderImpl

java.lang.Object
org.eclipse.jgit.http.server.glue.ServletBinderImpl
All Implemented Interfaces:
ServletBinder
Direct Known Subclasses:
RegexPipeline.Binder, SuffixPipeline.Binder

abstract class ServletBinderImpl extends Object implements ServletBinder
  • Field Details

    • filters

      private final List<javax.servlet.Filter> filters
    • httpServlet

      private javax.servlet.http.HttpServlet httpServlet
  • Constructor Details

    • ServletBinderImpl

      ServletBinderImpl()
  • Method Details

    • through

      public ServletBinder through(javax.servlet.Filter filter)
      Set the filter to trigger while processing the path.
      Specified by:
      through in interface ServletBinder
      Parameters:
      filter - the filter to trigger while processing the path.
      Returns:
      this.
    • with

      public void with(javax.servlet.http.HttpServlet servlet)
      Set the servlet to execute on this path
      Specified by:
      with in interface ServletBinder
      Parameters:
      servlet - the servlet to execute on this path.
    • getServlet

      protected javax.servlet.http.HttpServlet getServlet()
      Get the servlet
      Returns:
      the configured servlet, or singleton returning 404 if none.
    • getFilters

      protected javax.servlet.Filter[] getFilters()
      Get filters
      Returns:
      the configured filters; zero-length array if none.
    • create

      abstract UrlPipeline create()
      Returns:
      the pipeline that matches and executes this chain.