Package org.boris.xlloop.http

Source Code of org.boris.xlloop.http.ServletTest1

/*******************************************************************************
* This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
*     Peter Smith
*******************************************************************************/
package org.boris.xlloop.http;

import java.util.Properties;

import org.boris.xlloop.ServerTest1;

import se.rupy.http.Daemon;

public class ServletTest1
{
    public static void main(String[] args) throws Exception {
        Properties p = new Properties();
        p.put("delay", "60");
        p.put("verbose", "true");
        Daemon d = new Daemon(p);
        FunctionServlet servlet = new FunctionServlet();
        servlet.setHandler(ServerTest1.createHandler());
        ServletContainer f = new ServletContainer("/", servlet);
        d.add(f);
    }
}
TOP

Related Classes of org.boris.xlloop.http.ServletTest1

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.