Class LoginCommand

java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.cli.LoginCommand
All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct

@Service(name="login") @PerLookup public class LoginCommand extends CLICommand
The asadmin login command. Pretend to be a remote command so that program options are allowed.
Author:
Nandini Ektare, Bill Shannon
  • Constructor Details

    • LoginCommand

      public LoginCommand()
  • Method Details

    • executeCommand

      protected int executeCommand() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException
      Description copied from class: CLICommand
      Execute the command using the options in options and the operands in operands.
      Specified by:
      executeCommand in class CLICommand
      Returns:
      the exit code
      Throws:
      org.glassfish.api.admin.CommandException - if execution of the command fails
      org.glassfish.api.admin.CommandValidationException - if there's something wrong with the options or arguments