public final class ServletService extends Object
Modifier and Type | Method and Description |
---|---|
static ServletService |
getInstance()
Return the unique instance
|
List<LuteceServlet> |
getServlets()
Gives the servlets list
|
static void |
init(javax.servlet.ServletContext context)
Initializes servlets
|
void |
registerServlet(ServletEntry entry,
Plugin plugin)
Register a servlet
|
static void |
setServletContext(javax.servlet.ServletContext servletContext)
Defines the servlet context used by the ServletConfig given to the servlets
|
public static ServletService getInstance()
public void registerServlet(ServletEntry entry, Plugin plugin)
entry
- The servlet entry defined in the plugin's XML fileplugin
- The pluginpublic static void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- The contextpublic static void init(javax.servlet.ServletContext context) throws LuteceInitException
context
- The contextLuteceInitException
- If an error occurspublic List<LuteceServlet> getServlets()
Copyright © 2020 City of Paris. All rights reserved.