// Set up request handlers
HttpRequestHandlerRegistry reqistry = new HttpRequestHandlerRegistry();
reqistry.register("*", new HttpFileHandler(args[0]));
MyNHttpServiceHandler handler = new MyNHttpServiceHandler(reqistry, params);
IOEventDispatch ioEventDispatch = new DefaultServerIOEventDispatch(handler, params);
try {
ioReactor.listen(new InetSocketAddress(8080));
ioReactor.execute(ioEventDispatch);
} catch (InterruptedIOException ex) {