.setBooleanParameter(HttpConnectionParams.TCP_NODELAY, true)
.setParameter(HttpProtocolParams.ORIGIN_SERVER, "HttpComponents/1.1");
ListeningIOReactor ioReactor = new DefaultListeningIOReactor(2, params);
NHttpServiceHandler handler = new FileServiceHandler(args[0], useFileChannels, params);
IOEventDispatch ioEventDispatch = new DefaultServerIOEventDispatch(handler, params);
try {
ioReactor.listen(new InetSocketAddress(8080));
ioReactor.execute(ioEventDispatch);