Inherits from std::enable_shared_from_this< HttpServlet >
Subclassed by cppmicroservices::AbstractWebConsolePlugin
Init(ServletConfig const &config)¶
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
The servlet container calls the
Initmethod exactly once after instantiating the servlet. The
Initmethod must complete successfully before the servlet can receive any requests.
The servlet container cannot place the servlet into service if the
- Throws a
- Does not return within a time period defined by the Web server
- Throws a
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
This method is only called once all threads within the servlet’s
servicemethod have exited or after a timeout period has passed. After the servlet container calls this method, it will not call the
servicemethod again on this servlet.
This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet’s current state in memory.
Returns a ServletConfig object, which contains initialization and startup parameters for this servlet.
ServletConfigobject returned is the one passed to the
Public Static Attributes