Code example for DefaultHttpResponseFactory

0
                new ResponseServer(),
                new ResponseContent(),
                new ResponseConnControl()
        }); 
         
        AsyncNHttpServiceHandler handler = new AsyncNHttpServiceHandler(
                httpproc,
                new DefaultHttpResponseFactory(),
                new DefaultConnectionReuseStrategy(),
                params);
 
        final HttpFileHandler filehandler = new HttpFileHandler(args[0], useFileChannels);
 
        NHttpRequestHandlerResolver resolver = new NHttpRequestHandlerResolver() {
 
            public NHttpRequestHandler lookup(String requestURI) {
                return filehandler;
            } 
 
        };