public class JettyEmbeddedServletContainer extends Object implements EmbeddedServletContainer
EmbeddedServletContainer
that can be used to control an embedded Jetty server.
Usually this class should be created using the
JettyEmbeddedServletContainerFactory
and not directly.JettyEmbeddedServletContainerFactory
NONE
Constructor and Description |
---|
JettyEmbeddedServletContainer(Server server)
Create a new
JettyEmbeddedServletContainer instance. |
JettyEmbeddedServletContainer(Server server,
boolean autoStart)
Create a new
JettyEmbeddedServletContainer instance. |
public JettyEmbeddedServletContainer(Server server)
JettyEmbeddedServletContainer
instance.server
- the underlying Jetty serverpublic JettyEmbeddedServletContainer(Server server, boolean autoStart)
JettyEmbeddedServletContainer
instance.server
- the underlying Jetty serverpublic void start() throws EmbeddedServletContainerException
EmbeddedServletContainer
start
in interface EmbeddedServletContainer
EmbeddedServletContainerException
- of the container cannot be stoppedpublic void stop()
EmbeddedServletContainer
stop
in interface EmbeddedServletContainer
public int getPort()
getPort
in interface EmbeddedServletContainer
public Server getServer()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.