public interface SimpleServer
Modifier and Type | Interface and Description |
---|---|
static interface |
SimpleServer.LoggerListener |
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG |
static int |
INFO |
static int |
WARN |
Modifier and Type | Method and Description |
---|---|
void |
addLogListener(SimpleServer.LoggerListener logger) |
Command |
getCommand(java.lang.String arg) |
java.util.Map<java.lang.String,Command> |
getCommands() |
SimpleServerConfig |
getConfig() |
java.lang.String |
getHost() |
java.net.URL |
getURL(java.lang.String path) |
boolean |
isStarted() |
void |
log(int level,
java.lang.String message) |
void |
reload() |
void |
removeLogListener(SimpleServer.LoggerListener logger) |
void |
start() |
void |
stop() |
static final int INFO
static final int WARN
static final int DEBUG
SimpleServerConfig getConfig()
void start()
void stop()
void reload()
boolean isStarted()
void addLogListener(SimpleServer.LoggerListener logger)
void removeLogListener(SimpleServer.LoggerListener logger)
java.net.URL getURL(java.lang.String path)
java.lang.String getHost()
void log(int level, java.lang.String message)
java.util.Map<java.lang.String,Command> getCommands()
Command getCommand(java.lang.String arg)