public class LocalServer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY_PORT |
| Constructor and Description |
|---|
LocalServer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.glassfish.jersey.server.ResourceConfig |
createResourceConfig()
Creates the actual REST application.
|
int |
getLocalPort() |
File |
getLocalServerRunningFile() |
File |
getLocalServerStopFile() |
int |
getPort() |
org.eclipse.jetty.server.Server |
getServer() |
boolean |
isLocalServerStopFileEnabled() |
void |
setLocalServerStopFileEnabled(boolean localServerStopFileEnabled) |
void |
setPort(int port) |
boolean |
start()
Starts this instance of
LocalServer, if no other instance is running on this computer. |
void |
stop() |
public static final String CONFIG_KEY_PORT
public LocalServer()
public File getLocalServerRunningFile()
public File getLocalServerStopFile()
public boolean isLocalServerStopFileEnabled()
public void setLocalServerStopFileEnabled(boolean localServerStopFileEnabled)
public boolean start()
LocalServer, if no other instance is running on this computer.true, if neither this nor any other LocalServer is running on this computer, yet, and this
instance could thus be started. false, if this instance or another instance was already started before.RuntimeException - in case starting the server fails for an unexpected reason.public void stop()
public org.eclipse.jetty.server.Server getServer()
public int getLocalPort()
public int getPort()
public void setPort(int port)
protected org.glassfish.jersey.server.ResourceConfig createResourceConfig()
null.Copyright © 2013–2019. All rights reserved.