Interface WebApplicationServer

All Known Implementing Classes:
HttpWebApplicationServer

public interface WebApplicationServer
The WebApplicationServer API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • addWebApplication

      void addWebApplication(WebApplication webApplication)
      Add a web application.
      Parameters:
      webApplication - the web application to add.
    • getRequestMapper

      Returns the request mapper.
      Returns:
      the request mapper
    • service

      void service(WebApplicationRequest request, WebApplicationResponse response) throws IOException, ServletException
      Service the request and response.
      Parameters:
      request - the request.
      response - the response.
      Throws:
      IOException - when an I/O error occurs.
      ServletException - when a Servlet error occurs.
    • initialize

      void initialize()
      Initialize the server.
    • setRequestMapper

      void setRequestMapper(WebApplicationServerRequestMapper requestMapper)
      Set the request mapper.
      Parameters:
      requestMapper - the request mapper.
    • start

      void start()
      Start the server.
    • stop

      void stop()
      Stop the server.