Class ServletService


  • public final class ServletService
    extends Object
    ServletService
    • Method Detail

      • getInstance

        public static ServletService getInstance()
        Return the unique instance
        Returns:
        The instance
      • registerServlet

        public void registerServlet​(ServletEntry entry,
                                    Plugin plugin)
        Register a servlet
        Parameters:
        entry - The servlet entry defined in the plugin's XML file
        plugin - The plugin
      • setServletContext

        public static void setServletContext​(javax.servlet.ServletContext servletContext)
        Defines the servlet context used by the ServletConfig given to the servlets
        Parameters:
        servletContext - The context
      • init

        public static void init​(javax.servlet.ServletContext context)
                         throws LuteceInitException
        Initializes servlets
        Parameters:
        context - The context
        Throws:
        LuteceInitException - If an error occurs
      • getServlets

        public List<LuteceServlet> getServlets()
        Gives the servlets list
        Returns:
        The list of servlets