コード例 #1
0
  /**
   * Returns the set of data that user has entered through this wizard.
   *
   * @return Iterator
   */
  public Iterator<Map.Entry<String, String>> getSummary() {
    Hashtable<String, String> summaryTable = new Hashtable<String, String>();

    /*
     * Hashtable arranges the entries alphabetically so the order
     * of appearance is
     * - Computer Name / IP
     * - Port
     * - User ID
     */
    summaryTable.put("Account ID", registration.getAccountID());
    summaryTable.put("Known Hosts", registration.getKnownHostsFile());
    summaryTable.put("Identity", registration.getIdentityFile());

    return summaryTable.entrySet().iterator();
  }
コード例 #2
0
  /**
   * Defines the operations that will be executed when the user clicks on the wizard "Signin"
   * button.
   *
   * @return the created <tt>ProtocolProviderService</tt> corresponding to the new account
   * @throws OperationFailedException if the operation didn't succeed
   */
  public ProtocolProviderService signin() throws OperationFailedException {
    firstWizardPage.commitPage();

    return signin(registration.getAccountID(), null);
  }