Code example for ResponseDate

                .setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true)
                .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(),
Contextual code suggestions in your IDE  Get Codota for Java