Package net.sourceforge.kitteh.producers

Examples of net.sourceforge.kitteh.producers.FileProducer


public class WebSocketTest implements WebSocketListener {

  public WebSocketTest() throws Exception
  {
    FileProducer f = new FileProducer("www");
        f.setDefaultFile("websocket.html");
    WebServer w = new WebServer(f,8080);
    w.setWebSocketListener(this);
    w.runAsThread();
    System.out.println("Server started!");
    System.out.println("Press ENTER to quit.");
View Full Code Here


      public void produceDocument(Request request, Response response) throws Exception, Redirection
      {
        throw new Exception("You broke Kitteh!");
      }
    });
    DocumentProducer f = new FileProducer("www");
   
    DocumentProducer d = new DispatcherProducer(rules, f);
       
    WebServer w = new WebServer(d,8080);
    w.runAsThread();
View Full Code Here

TOP

Related Classes of net.sourceforge.kitteh.producers.FileProducer

Copyright © 2018 www.massapicom. 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.