public class RunStandalone extends Object
Launches an embedded Jetty server hosting the I2PSnark web interface independently
of the main I2P router. Reads configuration from jetty-i2psnark.xml and
i2psnark-appctx.config, parses host/port from the Jetty XML config, and
optionally opens the system browser.
| Modifier and Type | Field and Description |
|---|---|
(package private) static File | APP_CONFIG_FILEThe app context config file name |
| Modifier and Type | Method and Description |
|---|---|
String | getHostFromJettyConfig() |
int | getPortFromJettyConfig() |
String | getSnarkRevision() |
static void | main(String[] args)Entry point for standalone I2PSnark. |
static void | shutdown() |
void | start()Starts the standalone I2PSnark server and optionally opens the system browser. |
void | stop()Stops the embedded Jetty server. |
static final File APP_CONFIG_FILE
public String getHostFromJettyConfig()
public int getPortFromJettyConfig()
public String getSnarkRevision()
public static void main(String[] args)
args - args[0] host, args[1] portpublic static void shutdown()
public void start()
public void stop()