- All Known Implementing Classes:
HttpWebApplicationServer
public interface WebApplicationServer
The WebApplicationServer API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWebApplication
(WebApplication webApplication) Add a web application.Returns the request mapper.void
Initialize the server.void
service
(WebApplicationRequest request, WebApplicationResponse response) Service the request and response.void
setRequestMapper
(WebApplicationServerRequestMapper requestMapper) Set the request mapper.void
start()
Start the server.void
stop()
Stop the server.
-
Method Details
-
addWebApplication
Add a web application.- Parameters:
webApplication
- the web application to add.
-
getRequestMapper
WebApplicationServerRequestMapper getRequestMapper()Returns the request mapper.- Returns:
- the request mapper
-
service
void service(WebApplicationRequest request, WebApplicationResponse response) throws IOException, jakarta.servlet.ServletException Service the request and response.- Parameters:
request
- the request.response
- the response.- Throws:
IOException
- when an I/O error occurs.jakarta.servlet.ServletException
- when a Servlet error occurs.
-
initialize
void initialize()Initialize the server. -
setRequestMapper
Set the request mapper.- Parameters:
requestMapper
- the request mapper.
-
start
void start()Start the server. -
stop
void stop()Stop the server.
-