public class TomcatEmbeddedServletContainer extends Object implements EmbeddedServletContainer
EmbeddedServletContainer
that can be used to control an embedded Tomcat server.
Usually this class should be created using the
TomcatEmbeddedServletContainerFactory
and not directly.TomcatEmbeddedServletContainerFactory
NONE
Constructor and Description |
---|
TomcatEmbeddedServletContainer(Tomcat tomcat)
Create a new
TomcatEmbeddedServletContainer instance. |
public TomcatEmbeddedServletContainer(Tomcat tomcat)
TomcatEmbeddedServletContainer
instance.tomcat
- the underlying Tomcat serverpublic void start() throws EmbeddedServletContainerException
EmbeddedServletContainer
start
in interface EmbeddedServletContainer
EmbeddedServletContainerException
- of the container cannot be stoppedpublic void stop() throws EmbeddedServletContainerException
EmbeddedServletContainer
stop
in interface EmbeddedServletContainer
EmbeddedServletContainerException
- of the container cannot be stoppedpublic Tomcat getTomcat()
Copyright © 2013. All rights reserved.