org.apache.deft.web
Class HttpServer

java.lang.Object
  extended by org.apache.deft.web.HttpServer

public class HttpServer
extends Object


Constructor Summary
HttpServer(Configuration configuration)
           
 
Method Summary
 void bind(int port)
           
protected  Application createApplication(String packageName)
           
 void listen(int port)
          If you want to run Deft on multiple threads first invoke bind(int) then start(int) instead of listen(int) (listen starts Deft http server on a single thread with the default IOLoop instance: IOLoop.INSTANCE).
 void start(int numThreads)
           
 void stop()
          Unbinds the port and shutdown the HTTP server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServer

public HttpServer(Configuration configuration)
Method Detail

createApplication

protected Application createApplication(String packageName)

listen

public void listen(int port)
If you want to run Deft on multiple threads first invoke bind(int) then start(int) instead of listen(int) (listen starts Deft http server on a single thread with the default IOLoop instance: IOLoop.INSTANCE).


bind

public void bind(int port)

start

public void start(int numThreads)

stop

public void stop()
Unbinds the port and shutdown the HTTP server



Copyright © 2010-2011. All Rights Reserved.