edu.neu.ccs.demeterf.http.server
Class Factory

java.lang.Object
  extended by edu.neu.ccs.demeterf.http.server.Factory

public class Factory
extends java.lang.Object

Web Server Factory class


Method Summary
static ServerThread create(java.lang.Object handler)
          Create a new Server using the given Handler.
static ServerThread create(java.lang.Object handler, boolean single)
          Create a Single/Multi-threaded Server
static void setVerbose(boolean v)
          Set to true in order to get Output for Server/Dispatch descisions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setVerbose

public static void setVerbose(boolean v)
Set to true in order to get Output for Server/Dispatch descisions.


create

public static ServerThread create(java.lang.Object handler)
                           throws java.io.IOException
Create a new Server using the given Handler. A Server Annotation is used to describe the Port the Server will Listen on, and methods should be Annotated with Path to describe responses to various Path requests. See Test for an Example.

Throws:
java.io.IOException

create

public static ServerThread create(java.lang.Object handler,
                                  boolean single)
                           throws java.io.IOException
Create a Single/Multi-threaded Server

Throws:
java.io.IOException