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(Builder builder,
DeploymentManager manager,
String contextPath,
int port,
boolean autoStart) |
public UndertowEmbeddedServletContainer(Builder builder, 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 © 2015 Pivotal Software, Inc.. All rights reserved.