public interface HttpServer
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate the Werval Http Server.
|
void |
passivate()
Passivate the Werval Http Server.
|
void |
registerPassivationShutdownHook()
Register a JVM shutdown hook to passivate the HttpServer.
|
void |
setApplicationSPI(ApplicationSPI application)
Set the Application SPI.
|
void |
setDevShellSPI(DevShellSPI devSpi)
Set the Development Shell SPI.
|
void setApplicationSPI(ApplicationSPI application)
application
- ApplicationSPI
void setDevShellSPI(DevShellSPI devSpi)
devSpi
- DevShell SPI
void activate()
IllegalStateException
- if ApplicationSPI is not set
WervalException
- if unable to activate HttpServer
void passivate()
WervalException
- if unable to passivate HttpServer
void registerPassivationShutdownHook()
This method can be called ony once.
IllegalStateException
- when the passivation shutdown hook has already been registered