Interface IServerCommand
-
- All Known Implementing Classes:
HolepunchRequest
,Listen
,Quit
,Register
,Register
,ReportUdpIp
,ReportUdpPort
,SendMeUdp
,ShowIp
public interface IServerCommand
Command executable on the server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
execute(java.lang.String cmd, java.lang.String[] args, IConnectedHost connectedhost)
Executes the command.boolean
isApplicable(java.lang.String cmd)
Tests if applicable.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(java.lang.String cmd)
Tests if applicable.- Parameters:
cmd
-- Returns:
- True, if applicable.
-
execute
java.lang.String execute(java.lang.String cmd, java.lang.String[] args, IConnectedHost connectedhost)
Executes the command.- Parameters:
cmd
- The command string.args
- The arguments.connectedhost
- The connection.- Returns:
- The response.
-
-