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 TypeMethodDescriptionvoidaddFilter(FilterDescriptor descriptor) Adds a filter to the server.voidaddLifecycleListener(ServletContextListenerDescriptor descriptor) Adds a lifecycle listener to the server.voidaddServlet(ServletDescriptor descriptor) Adds a servlet to the server.voidaddWepApp(WebApplication descriptor) Adds a web app to the server.voidclose()Closes this server configurator and releases resources.intinitialize(int port) Initializes this server configuratorvoidstart()Starts the server.voidstop()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
 
 -