DefaultWebApplicationServer
public interface WebApplicationServer
Modifier and Type | Method | Description |
---|---|---|
void |
addWebApplication(WebApplication webApplication) |
Add a web application.
|
WebApplicationServerRequestMapper |
getRequestMapper() |
Get the request mapper.
|
void |
initialize() |
Initialize the server.
|
void |
service(WebApplicationServerRequest request,
WebApplicationServerResponse response) |
Service the request and response.
|
void |
setRequestMapper(WebApplicationServerRequestMapper requestMapper) |
Set the request mapper.
|
void |
start() |
Start the server.
|
void |
stop() |
Stop the server.
|
void addWebApplication(WebApplication webApplication)
webApplication
- the web application to add.WebApplicationServerRequestMapper getRequestMapper()
void service(WebApplicationServerRequest request, WebApplicationServerResponse response) throws IOException, ServletException
request
- the request.response
- the response.IOException
- when an I/O error occurs.ServletException
- when a Servlet error occurs.void initialize()
void setRequestMapper(WebApplicationServerRequestMapper requestMapper)
requestMapper
- the request mapper.void start()
void stop()
Copyright © 2020 Piranha Cloud. All rights reserved.