Interface ServerConfigurator

All Known Implementing Classes:
TomcatServerConfigurator

public interface ServerConfigurator
Configuration interface for an embedded server implementation.
Since:
10.2
  • Method Details

    • initialize

      int initialize(int port)
      Initializes this server configurator
      Parameters:
      port - the HTTP port to use
      Returns:
      the actual port used
    • close

      void close()
      Closes this server configurator and releases resources.
    • start

      void start()
      Starts the server.
    • stop

      void stop()
      Stops the server.
    • addWepApp

      void addWepApp(WebApplication descriptor)
      Adds a web app to the server.
      Parameters:
      descriptor - the descriptor
    • addFilter

      void addFilter(FilterDescriptor descriptor)
      Adds a filter to the server.
      Parameters:
      descriptor - the descriptor
    • addServlet

      void addServlet(ServletDescriptor descriptor)
      Adds a servlet to the server.
      Parameters:
      descriptor - the descriptor
    • addLifecycleListener

      void addLifecycleListener(ServletContextListenerDescriptor descriptor)
      Adds a lifecycle listener to the server.
      Parameters:
      descriptor - the descriptor