public class UndertowEmbeddedServletContainer extends Object implements EmbeddedServletContainer
EmbeddedServletContainer
that can be used to control an embedded Undertow
server. Typically this class should be created using
UndertowEmbeddedServletContainerFactory
and not directly.UndertowEmbeddedServletContainer
Constructor and Description |
---|
UndertowEmbeddedServletContainer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
String contextPath,
int port,
boolean autoStart) |
public UndertowEmbeddedServletContainer(io.undertow.Undertow.Builder builder, io.undertow.servlet.api.DeploymentManager manager, String contextPath, int port, boolean autoStart)
public 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 int getPort()
getPort
in interface EmbeddedServletContainer
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.