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.UndertowEmbeddedServletContainerFactory
Constructor and Description |
---|
UndertowEmbeddedServletContainer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
String contextPath,
int port,
boolean autoStart) |
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
void |
start()
Starts the embedded servlet container.
|
void |
stop()
Stops the embedded servlet container.
|
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
- if the container cannot be startedpublic void stop() throws EmbeddedServletContainerException
EmbeddedServletContainer
stop
in interface EmbeddedServletContainer
EmbeddedServletContainerException
- if the container cannot be stoppedpublic int getPort()
getPort
in interface EmbeddedServletContainer
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.