org.apache.deft.web
Class HttpServer
java.lang.Object
org.apache.deft.web.HttpServer
public class HttpServer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServer
public HttpServer(Configuration configuration)
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.