Code example for ResponseServer

                .setParameter(CoreProtocolPNames.ORIGIN_SERVER, "HttpComponents/1.1");
            // Set up the HTTP protocol processor 
            HttpProcessor httpproc = new ImmutableHttpProcessor(new HttpResponseInterceptor[] {
                    new ResponseDate(),
                    new ResponseServer(),
                    new ResponseContent(),
                    new ResponseConnControl()
            // Set up request handlers 
            HttpRequestHandlerRegistry reqistry = new HttpRequestHandlerRegistry();
            reqistry.register("*", new HttpFileHandler(docroot));
            // Set up the HTTP service 
            this.httpService = new HttpService(
                    new DefaultConnectionReuseStrategy(), 
                    new DefaultHttpResponseFactory(),
Stop searching for code, let great code find you!  Add Codota to your java IDE