/*
 * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. 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.wso2.carbon.uis.api.http;


import java.util.Map;
import java.util.function.Function;

public interface HttpConnector {

    void registerApp(String appName, String appContextPath, Function<HttpRequest, HttpResponse> httpListener);

    void registerApps(Map<String, String> appNamesContextPaths, Function<HttpRequest, HttpResponse> httpListener);

    void unregisterApp(String appName);

    void unregisterAllApps();
}

@@ -770,310 +770,1202 @@
 n;%0A%0A
-public interface HttpConnector %7B%0A%0A    void registerApp(String appName, String appContextPath, Function%3CHttpRequest, HttpResponse%3E httpListener);%0A%0A    void registerApps(Map%3CString, String%3E appNamesContextPaths, Function%3CHttpRequest, HttpResponse%3E httpListener);%0A%0A    void unregisterApp(String appName);%0A
+/**%0A * HTTP connector bridges the HTTP transport to the web app server.%0A *%0A * @since 0.8.0%0A */%0Apublic interface HttpConnector %7B%0A%0A    /**%0A     * Registers a web app to the transport.%0A     *%0A     * @param appName        name of the app%0A     * @param appContextPath context path of the app%0A     * @param httpListener   HTTP requests listener that handles the incoming HTTP requests for the registering app%0A     */%0A    void registerApp(String appName, String appContextPath, Function%3CHttpRequest, HttpResponse%3E httpListener);%0A%0A    /**%0A     * Registers multiple web apps.%0A     *%0A     * @param appNamesContextPaths names and context paths of the apps.%0A     * @param httpListener         HTTP requests listener that handles the incoming HTTP requests for the registering%0A     *                             apps%0A     */%0A    @Deprecated%0A    void registerApps(Map%3CString, String%3E appNamesContextPaths, Function%3CHttpRequest, HttpResponse%3E httpListener);%0A%0A    /**%0A     * Unregisters the specified app from the transport.%0A     *%0A     * @param appName name of the app to be unregister%0A     */%0A    void unregisterApp(String appName);%0A%0A    /**%0A     * Unregisters all registered apps from the transport.%0A     */
 %0A   

fix javadocs in HttpConnector class