Interface IServerCommand
-
- All Known Implementing Classes:
HolepunchRequest,Listen,Quit,Register,Register,ReportUdpIp,ReportUdpPort,SendMeUdp,ShowIp
public interface IServerCommandCommand executable on the server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringexecute(java.lang.String cmd, java.lang.String[] args, IConnectedHost connectedhost)Executes the command.booleanisApplicable(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.
-
-