mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
07.35.2011 3c62241572c7b043743d66adf53bb1633af43506
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelArgumentParser.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2011 ForgeRock AS
 */
package org.opends.guitools.controlpanel;
@@ -81,6 +82,11 @@
  private BooleanArgument trustAllArg = null;
  /**
   * The 'remoteArg' global argument.
   */
  private BooleanArgument remoteArg = null;
  /**
   * Argument to specify the connect timeout.
   */
  private IntegerArgument connectTimeoutArg = null;
@@ -164,6 +170,11 @@
    trustAllArg.setPropertyName(OPTION_LONG_TRUSTALL);
    addArgument(trustAllArg);
    remoteArg = new BooleanArgument("remote", OPTION_SHORT_REMOTE,
        OPTION_LONG_REMOTE, INFO_DESCRIPTION_REMOTE.get());
    remoteArg.setPropertyName(OPTION_LONG_REMOTE);
    addArgument(remoteArg);
    int defaultTimeout = ConnectionUtils.getDefaultLDAPTimeout();
    connectTimeoutArg = new IntegerArgument(OPTION_LONG_CONNECT_TIMEOUT,
        null, OPTION_LONG_CONNECT_TIMEOUT,
@@ -307,4 +318,13 @@
    }
  }
  /**
   * Returns whether the user specified to connect to a remote server.
   * @return whether the user specified to connect to a remote server.
   */
  public boolean isRemote()
  {
    return remoteArg.isPresent();
  }
}