Class ReportUdpPort
- java.lang.Object
-
- org.activecomponents.udp.holepunching.server.commands.ReportUdpPort
-
- All Implemented Interfaces:
IServerCommand
public class ReportUdpPort extends java.lang.Object implements IServerCommand
-
-
Constructor Summary
Constructors Constructor Description ReportUdpPort()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean isApplicable(java.lang.String cmd)
Tests if applicable.- Specified by:
isApplicable
in interfaceIServerCommand
- Parameters:
cmd
-- Returns:
- True, if applicable.
-
execute
public java.lang.String execute(java.lang.String cmd, java.lang.String[] args, IConnectedHost connectedhost)
Executes the command.- Specified by:
execute
in interfaceIServerCommand
- Parameters:
cmd
- The command string.args
- The arguments.connectedhost
- The connection.- Returns:
- The response.
-
-