public class TomcatServerConfigurator extends Object implements ServerConfigurator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
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.
|
public static final int DEFAULT_PORT
protected org.apache.catalina.startup.Tomcat tomcat
public TomcatServerConfigurator()
public int initialize(int port)
ServerConfigurator
initialize
in interface ServerConfigurator
port
- the HTTP port to usepublic void close()
ServerConfigurator
close
in interface ServerConfigurator
public void start()
ServerConfigurator
start
in interface ServerConfigurator
public void stop()
ServerConfigurator
stop
in interface ServerConfigurator
public void addWepApp(WebApplication descriptor)
ServerConfigurator
addWepApp
in interface ServerConfigurator
descriptor
- the descriptorpublic void addFilter(FilterDescriptor descriptor)
ServerConfigurator
addFilter
in interface ServerConfigurator
descriptor
- the descriptorpublic void addServlet(ServletDescriptor descriptor)
ServerConfigurator
addServlet
in interface ServerConfigurator
descriptor
- the descriptorpublic void addLifecycleListener(ServletContextListenerDescriptor descriptor)
ServerConfigurator
addLifecycleListener
in interface ServerConfigurator
descriptor
- the descriptorprotected org.apache.catalina.Context getContextForPath(String contextPath)
protected String normalizeContextPath(String contextPath)
Copyright © 2018 Nuxeo. All rights reserved.