abstract class KtorServlet : HttpServlet, CoroutineScope
A base class for servlet engine implementations
KtorServlet()
A base class for servlet engine implementations |
abstract val application: Application
Current application instance. Could be lazy |
|
open val coroutineContext: <ERROR CLASS> |
|
abstract val enginePipeline: EnginePipeline
Engine pipeline |
|
open val logger: Logger
Application logger |
|
abstract val upgrade: ServletUpgrade
Servlet upgrade implementation |
open fun destroy(): Unit
Called by servlet container when the application is going to be undeployed or stopped. |
|
open fun init(): Unit
Called by the servlet container when loading the servlet (on load) |
|
open fun service(request: HttpServletRequest, response: HttpServletResponse): Unit
Called by the servlet container when an HTTP request received. |
open class ServletApplicationEngine : KtorServlet
This servlet need to be installed into a servlet container |