Class ServletBinderImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<javax.servlet.Filter> filters  
      private javax.servlet.http.HttpServlet httpServlet  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract UrlPipeline create()  
      protected javax.servlet.Filter[] getFilters()
      Get filters
      protected javax.servlet.http.HttpServlet getServlet()
      Get the servlet
      ServletBinder through​(javax.servlet.Filter filter)
      Set the filter to trigger while processing the path.
      void with​(javax.servlet.http.HttpServlet servlet)
      Set the servlet to execute on this path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filters

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

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

      • ServletBinderImpl

        ServletBinderImpl()
    • Method Detail

      • 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.