Package org.nuxeo.runtime.server
Interface ServerConfigurator
-
- All Known Implementing Classes:
TomcatServerConfigurator
public interface ServerConfigurator
Configuration interface for an embedded server implementation.- Since:
- 10.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFilter(FilterDescriptor descriptor)
Adds a filter to the server.void
addLifecycleListener(ServletContextListenerDescriptor descriptor)
Adds a lifecycle listener to the server.void
addServlet(ServletDescriptor descriptor)
Adds a servlet to the server.void
addWepApp(WebApplication descriptor)
Adds a web app to the server.void
close()
Closes this server configurator and releases resources.int
initialize(int port)
Initializes this server configuratorvoid
start()
Starts the server.void
stop()
Stops the server.
-
-
-
Method Detail
-
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
-
-