Class Listen
- java.lang.Object
-
- org.activecomponents.udp.holepunching.server.webcommands.Listen
-
- All Implemented Interfaces:
IServerCommand
public class Listen extends java.lang.Object implements IServerCommand
-
-
Field Summary
Fields Modifier and Type Field Description static long
LEASE_TIME
Lease Time
-
Constructor Summary
Constructors Constructor Description Listen()
-
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.
-
-
-
Field Detail
-
LEASE_TIME
public static final long LEASE_TIME
Lease Time- See Also:
- Constant Field Values
-
-
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.
-
-