Class HolepunchRequest

  • All Implemented Interfaces:
    IServerCommand

    public class HolepunchRequest
    extends java.lang.Object
    implements IServerCommand
    Request for a holepunch.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HolepunchRequest

        public HolepunchRequest()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(java.lang.String cmd)
        Tests if applicable.
        Specified by:
        isApplicable in interface IServerCommand
        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 interface IServerCommand
        Parameters:
        cmd - The command string.
        args - The arguments.
        connectedhost - The connection.
        Returns:
        The response.