http_server_servlet
Module Contents
alltypes
Module Contents
class
RequestTest
Module Contents
RequestTest
(
)
fun
Request path is obtained based on servlet path
(
)
:
Unit
fun
Request path parameters are returned properly
(
)
:
Unit
fun
Request without action path returns empty path parameters
(
)
:
Unit
class
ServletFilter
:
Filter
Module Contents
ServletFilter
(
router
:
List
<
RequestHandler
>
)
fun
destroy
(
)
:
Unit
fun
doFilter
(
request
:
ServletRequest
,
response
:
ServletResponse
,
chain
:
FilterChain
)
:
Unit
fun
init
(
filterConfig
:
FilterConfig
)
:
Unit
abstract
class
ServletServer
:
ServletContextListener
Module Contents
ServletServer
(
router
:
Router
=
Router()
,
async
:
Boolean
=
false
)
open
fun
contextDestroyed
(
sce
:
ServletContextEvent
?
)
:
Unit
open
fun
contextInitialized
(
sce
:
ServletContextEvent
)
:
Unit
open
fun
createRouter
(
)
:
Router
val
serverRouter
:
Router
class
ServletServerTest
Module Contents
ServletServerTest
(
)
fun
Invalid types in filter calls raise an exception
(
)
:
Unit
fun
Run server
(
)
:
Unit
fun
Servlet server starts
(
)
:
Unit
fun
shutdown
(
)
:
Unit
@WebListener
class
WebAppServer
:
ServletServer
Module Contents
WebAppServer
(
)
fun
createRouter
(
)
:
Router
package
com.hexagonkt.http.server.servlet
Module Contents
class
RequestTest
Module Contents
RequestTest
(
)
fun
Request path is obtained based on servlet path
(
)
:
Unit
fun
Request path parameters are returned properly
(
)
:
Unit
fun
Request without action path returns empty path parameters
(
)
:
Unit
class
ServletFilter
:
Filter
Module Contents
ServletFilter
(
router
:
List
<
RequestHandler
>
)
fun
destroy
(
)
:
Unit
fun
doFilter
(
request
:
ServletRequest
,
response
:
ServletResponse
,
chain
:
FilterChain
)
:
Unit
fun
init
(
filterConfig
:
FilterConfig
)
:
Unit
abstract
class
ServletServer
:
ServletContextListener
Module Contents
ServletServer
(
router
:
Router
=
Router()
,
async
:
Boolean
=
false
)
open
fun
contextDestroyed
(
sce
:
ServletContextEvent
?
)
:
Unit
open
fun
contextInitialized
(
sce
:
ServletContextEvent
)
:
Unit
open
fun
createRouter
(
)
:
Router
val
serverRouter
:
Router
class
ServletServerTest
Module Contents
ServletServerTest
(
)
fun
Invalid types in filter calls raise an exception
(
)
:
Unit
fun
Run server
(
)
:
Unit
fun
Servlet server starts
(
)
:
Unit
fun
shutdown
(
)
:
Unit
@WebListener
class
WebAppServer
:
ServletServer
Module Contents
WebAppServer
(
)
fun
createRouter
(
)
:
Router