Class ServletService
java.lang.Object
fr.paris.lutece.portal.service.servlet.ServletService
ServletService
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServletServiceDeprecated, for removal: This API element is subject to removal in a future version.Gives the servlets liststatic voidinit(jakarta.servlet.ServletContext context) Initializes servletsvoidregisterServlet(ServletEntry entry, Plugin plugin) Register a servletstatic voidsetServletContext(jakarta.servlet.ServletContext servletContext) Defines the servlet context used by the ServletConfig given to the servlets
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theServletServiceinstance. This method will be removed in future versions.Returns the unique instance of theServletServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theServletServiceinstance instead.- Returns:
- The unique instance of
ServletService.
-
registerServlet
Register a servlet- Parameters:
entry- The servlet entry defined in the plugin's XML fileplugin- The plugin
-
setServletContext
public static void setServletContext(jakarta.servlet.ServletContext servletContext) Defines the servlet context used by the ServletConfig given to the servlets- Parameters:
servletContext- The context
-
init
Initializes servlets- Parameters:
context- The context- Throws:
LuteceInitException- If an error occurs
-
getServlets
Gives the servlets list- Returns:
- The list of servlets
-
@Injectto obtain theServletServiceinstance.