Class ServletHolder
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.nuxeo.ecm.webengine.rest.servlet.ServletHolder
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class ServletHolder
extends jakarta.servlet.http.HttpServlet
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RequestChain
protected ServletDescriptor
protected boolean
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected ServletDescriptor
getDescriptor
(jakarta.servlet.ServletConfig config) protected String
getName
(jakarta.servlet.ServletConfig config) void
init
(jakarta.servlet.ServletConfig config) protected void
lazyInit()
protected void
service
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
chain
-
descriptor
-
initDone
protected volatile boolean initDone
-
-
Constructor Details
-
ServletHolder
public ServletHolder()
-
-
Method Details
-
getName
-
getDescriptor
protected ServletDescriptor getDescriptor(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Throws:
jakarta.servlet.ServletException
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Servlet
- Overrides:
destroy
in classjakarta.servlet.GenericServlet
-
service
protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
service
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
lazyInit
protected void lazyInit() throws jakarta.servlet.ServletException- Throws:
jakarta.servlet.ServletException
-