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
Modifier and TypeMethodDescriptionvoid
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 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
Adds a web app to the server.- Parameters:
descriptor
- the descriptor
-
addFilter
Adds a filter to the server.- Parameters:
descriptor
- the descriptor
-
addServlet
Adds a servlet to the server.- Parameters:
descriptor
- the descriptor
-
addLifecycleListener
Adds a lifecycle listener to the server.- Parameters:
descriptor
- the descriptor
-