public interface CommandPlugin
Recommendations to be followed when implementing ClientCommandHandler
ClientData
class, which can be retrieved
using handler.getClientData() method.
QuickServer myserver = (QuickServer) handler.getServer().getStoreObjects()[0];
QSAdminServer.startServer()
Modifier and Type | Method and Description |
---|---|
boolean |
handleCommand(ClientHandler handler,
java.lang.String command)
Method called every time client sends a command to QsAdminServer.
|
boolean handleCommand(ClientHandler handler, java.lang.String command) throws java.net.SocketTimeoutException, java.io.IOException
true
else it should return false
indicating qsadmin.CommandHandler
to take any
default action for the command.
This method can be used to override default protocol of
QsAdminServer or add new command specific to your application.java.net.SocketTimeoutException
- if socket times outjava.io.IOException
- if io error in socketCopyright © 2003-2014 QuickServer.org