/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.guacamole.auth.quickconnect;

import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.net.auth.Connection;
import org.apache.guacamole.net.auth.simple.SimpleConnection;
import org.apache.guacamole.protocol.GuacamoleConfiguration;

/**
 * A type of Connection specific to this authentication extension.
 */
public class QuickConnection extends SimpleConnection {

    /**
     * Number of active connections.
     */
    private int activeConnections;

    /**
     * Empty connection constructor.
     */
    public QuickConnection() {

    }

    /**
     * Constructor that takes a name, identifier, and GuacamoleConfiguration
     * and builds a QuickConnection from it.
     *
     * @param name
     *     The name of the connection.
     *
     * @param identifier
     *     The unique identifier of this connection within this
     *     authentication module.
     *
     * @param config
     *     The GuacamoleConfiguration object to store in this
     *     QuickConnection.
     */
    public QuickConnection(String name, String identifier,
            GuacamoleConfiguration config) {

        super(name, identifier, config);

        this.activeConnections = 0;

    }

    /**
     * Constructs a QuickConnection from a generic Connection
     * object, copying over the relevant data and initializing
     * the rest.
     *
     * @param object
     *     The generic Connection object to be copied.
     */
    public QuickConnection(Connection object) {

        super(object.getName(),object.getIdentifier(),object.getConfiguration());

        setParentIdentifier(object.getParentIdentifier());
        this.activeConnections = 0;

    }

}

@@ -2198,22 +2198,26 @@
  @param 
-object
+connection
 %0A     * 
@@ -2243,23 +2243,16 @@
 nection 
-object 
 to be co
@@ -2303,22 +2303,26 @@
 nection 
-object
+connection
 ) %7B%0A%0A   
@@ -2332,22 +2332,26 @@
   super(
-object
+connection
 .getName
@@ -2353,22 +2353,26 @@
 tName(),
-object
+connection
 .getIden
@@ -2380,22 +2380,43 @@
 ifier(),
-object
+%0A                connection
 .getConf
@@ -2458,22 +2458,26 @@
 ntifier(
-object
+connection
 .getPare
@@ -2493,16 +2493,17 @@
 ier());%0A
+%0A
         

Fix parameter name in QuickConnection constructor.