Class HolepunchRequest
- java.lang.Object
-
- org.activecomponents.udp.holepunching.server.commands.HolepunchRequest
-
- All Implemented Interfaces:
IServerCommand
public class HolepunchRequest extends java.lang.Object implements IServerCommand
Request for a holepunch.
-
-
Constructor Summary
Constructors Constructor Description HolepunchRequest()
-
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.
-
-