Class Register

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Random RANDOM
      Random number generator for IDs.
    • Constructor Summary

      Constructors 
      Constructor Description
      Register()  
    • 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
    • Field Detail

      • RANDOM

        protected static final java.util.Random RANDOM
        Random number generator for IDs.
    • Constructor Detail

      • Register

        public Register()
    • 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.