public class SimpleServerImpl extends java.lang.Object implements SimpleServer
SimpleServer.LoggerListener
DEBUG, INFO, WARN
Constructor and Description |
---|
SimpleServerImpl(SimpleServerConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
addLogListener(SimpleServer.LoggerListener logger) |
Command |
getCommand(java.lang.String commandName) |
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() |
public SimpleServerImpl(SimpleServerConfig config)
public java.util.Map<java.lang.String,Command> getCommands()
getCommands
in interface SimpleServer
public Command getCommand(java.lang.String commandName)
getCommand
in interface SimpleServer
public SimpleServerConfig getConfig()
getConfig
in interface SimpleServer
public void addLogListener(SimpleServer.LoggerListener logger)
addLogListener
in interface SimpleServer
public void removeLogListener(SimpleServer.LoggerListener logger)
removeLogListener
in interface SimpleServer
public java.net.URL getURL(java.lang.String path)
getURL
in interface SimpleServer
public java.lang.String getHost()
getHost
in interface SimpleServer
public void log(int level, java.lang.String message)
log
in interface SimpleServer
public void start()
start
in interface SimpleServer
public void reload()
reload
in interface SimpleServer
public boolean isStarted()
isStarted
in interface SimpleServer
public void stop()
stop
in interface SimpleServer