/**
 * $RCSfile$
 * $Revision: $
 * $Date: $
 *
 * Copyright (C) 2006 Jive Software. All rights reserved.
 *
 * This software is published under the terms of the GNU Public License (GPL),
 * a copy of which is included in this distribution.
 */

package org.jivesoftware.wildfire.http;

import javax.servlet.http.HttpServlet;
import java.util.Map;
import java.util.HashMap;

/**
 *
 */
public class HttpBindManager {
    private static HttpBindManager instance = new HttpBindManager();

    public static HttpBindManager getInstance() {
        return instance;
    }

    /**
     * Returns all the servlets that are part of the http-bind service.
     *
     * @return all the servlets that are part of the http-bind service.
     */
    public Map<HttpServlet, String> getServlets() {
        Map<HttpServlet, String> servlets = new HashMap<HttpServlet, String>();
        servlets.put(new HttpBindServlet(new HttpSessionManager()),
                "/http-bind/");

        return servlets;
    }
}
