public class RemoteControl extends Object
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
PROP_REMOTECONTROL_ENABLED
If the remote control feature is enabled or disabled.
|
static BooleanProperty |
PROP_REMOTECONTROL_HTTPS_ENABLED
If the remote control feature is enabled or disabled for HTTPS.
|
(package private) static int |
protocolMajorVersion
RemoteControl HTTP protocol version.
|
(package private) static int |
protocolMinorVersion |
Constructor and Description |
---|
RemoteControl() |
Modifier and Type | Method and Description |
---|---|
void |
addRequestHandler(String command,
Class<? extends RequestHandler> handlerClass)
Adds external request handler.
|
static InetAddress |
getInetAddress()
Returns the inet address used for remote control.
|
static String |
getRemoteControlDir()
Returns the remote control directory.
|
static void |
start()
Starts the remote control server
|
static void |
stop()
Stops the remote control server
|
public static final BooleanProperty PROP_REMOTECONTROL_ENABLED
public static final BooleanProperty PROP_REMOTECONTROL_HTTPS_ENABLED
static final int protocolMajorVersion
static final int protocolMinorVersion
public RemoteControl()
public static void start()
public static void stop()
public void addRequestHandler(String command, Class<? extends RequestHandler> handlerClass)
command
- The command name.handlerClass
- The additional request handler.public static String getRemoteControlDir()
public static InetAddress getInetAddress() throws UnknownHostException
UnknownHostException
- if the local host name could not be resolved into an address.