public class TomcatServerConfigurator extends Object implements ServerConfigurator
| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.catalina.startup.Tomcat | 
tomcat  | 
| Constructor and Description | 
|---|
TomcatServerConfigurator()  | 
| Modifier and Type | Method and 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. 
 | 
protected org.apache.catalina.Context | 
getContextForPath(String contextPath)  | 
int | 
initialize(int port)
Initializes this server configurator 
 | 
protected String | 
normalizeContextPath(String contextPath)  | 
void | 
start()
Starts the server. 
 | 
void | 
stop()
Stops the server. 
 | 
protected org.apache.catalina.startup.Tomcat tomcat
public TomcatServerConfigurator()
public int initialize(int port)
ServerConfiguratorinitialize in interface ServerConfiguratorport - the HTTP port to usepublic void close()
ServerConfiguratorclose in interface ServerConfiguratorpublic void start()
ServerConfiguratorstart in interface ServerConfiguratorpublic void stop()
ServerConfiguratorstop in interface ServerConfiguratorpublic void addWepApp(WebApplication descriptor)
ServerConfiguratoraddWepApp in interface ServerConfiguratordescriptor - the descriptorpublic void addFilter(FilterDescriptor descriptor)
ServerConfiguratoraddFilter in interface ServerConfiguratordescriptor - the descriptorpublic void addServlet(ServletDescriptor descriptor)
ServerConfiguratoraddServlet in interface ServerConfiguratordescriptor - the descriptorpublic void addLifecycleListener(ServletContextListenerDescriptor descriptor)
ServerConfiguratoraddLifecycleListener in interface ServerConfiguratordescriptor - the descriptorprotected org.apache.catalina.Context getContextForPath(String contextPath)
protected String normalizeContextPath(String contextPath)
Copyright © 2019 Nuxeo. All rights reserved.