public interface EmbeddableServer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
static int |
DEFAULT_SECURE_PORT |
| Modifier and Type | Method and Description |
|---|---|
void |
restart()
Typically combines the stop() and start() methods in order to restart the container
|
void |
start()
Starts the container on the default port
|
void |
start(int port)
Starts the container on the given port
|
void |
start(java.lang.String host,
int port)
Starts the container on the given port
|
void |
startSecure()
Starts a secure container running over HTTPS
|
void |
startSecure(int port)
Starts a secure container running over HTTPS for the given port
|
void |
startSecure(java.lang.String host,
int httpPort,
int httpsPort)
Starts a secure container running over HTTPS for the given port and host.
|
void |
stop()
Stops the container
|
static final int DEFAULT_SECURE_PORT
static final int DEFAULT_PORT
static final java.lang.String DEFAULT_HOST
void start()
void start(int port)
port - The port numbervoid start(java.lang.String host,
int port)
host - The host to start onport - The port numbervoid startSecure()
void startSecure(int port)
port - The portvoid startSecure(java.lang.String host,
int httpPort,
int httpsPort)
host - The server hosthttpPort - The port for HTTP traffic.httpsPort - The port for HTTPS traffic.void stop()
void restart()