public class RemoteControlHttpServer extends java.lang.Thread
RequestProcessor for every
connection.
Taken from YWMS plugin by frsantos.| Modifier and Type | Field and Description |
|---|---|
private static RemoteControlHttpServer |
instance |
private java.net.ServerSocket |
server
The server socket
|
| Constructor and Description |
|---|
RemoteControlHttpServer(int port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
restartRemoteControlHttpServer()
Starts or restarts the HTTP server
|
void |
run()
The main loop, spawns a
RequestProcessor for each connection |
static void |
stopRemoteControlHttpServer()
Stops the HTTP server
|
void |
stopServer()
Stops the HTTP server
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate java.net.ServerSocket server
private static RemoteControlHttpServer instance
public RemoteControlHttpServer(int port) throws java.io.IOException
port - The port this server will listen onjava.io.IOException - when connection errorspublic static void restartRemoteControlHttpServer()
public static void stopRemoteControlHttpServer()
public void run()
RequestProcessor for each connectionrun in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopServer() throws java.io.IOException
java.io.IOException