// Create request handler registry
HttpAsyncRequestHandlerRegistry reqistry = new HttpAsyncRequestHandlerRegistry();
// Register the default handler for all URIs
reqistry.register("*", new HttpFileHandler(docRoot));
// Create server-side HTTP protocol handler
HttpAsyncServiceHandler protocolHandler = new HttpAsyncServiceHandler(
reqistry, httpproc, new DefaultConnectionReuseStrategy(), params) {
@Override
public void connected(final NHttpServerConnection conn) {
System.out.println(conn + ": connection open");