Class CLIRequest


  • public class CLIRequest
    extends Object
    This class encapsulates the CLI request information. Upon creation of this object, it is added a queue where requests are processed one after another.
    • Constructor Detail

      • CLIRequest

        public CLIRequest​(CLIRequest parent,
                          String[] argv,
                          SSOToken ssoToken)
        Constructs a CLI request object.
        Parameters:
        parent - Parent request object. This can be null if the request is the root request.
        argv - Options for the request.
        ssoToken - Single Sign On token of the administrator.
      • CLIRequest

        public CLIRequest​(CLIRequest parent,
                          String[] argv)
        Constructs a CLI request object.
        Parameters:
        parent - Parent request object. This can be null if the request is the root request.
        argv - Options for the request.
    • Method Detail

      • getSSOToken

        public SSOToken getSSOToken()
        Returns the single sign on token.
        Returns:
        the single sign on token.
      • getOptions

        public String[] getOptions()
        Returns options for the request.
        Returns:
        options for the request.
      • setOptions

        public void setOptions​(String[] argv)
        Sets options for the request.
      • getParent

        public CLIRequest getParent()
        Returns parent request object.
        Returns:
        parent request object.
      • process

        public void process​(CommandManager mgr,
                            SSOToken ssoToken)
                     throws CLIException
        Processes the request.
        Parameters:
        mgr - Command Manager instance.
        ssoToken - Single Sign On Token of the user.
        Throws:
        CLIException - if the request cannot be serviced.
      • process

        public void process​(CommandManager mgr)
                     throws CLIException
        Processes the request.
        Parameters:
        mgr - Command Manager instance.
        Throws:
        CLIException - if the request cannot be serviced.