Code example for DefaultHttpResponseFactory

     * a different implementation of the {@link HttpResponseFactory} interface. 
     * @return HTTP response factory. 
    protected HttpResponseFactory createHttpResponseFactory() {
        return new DefaultHttpResponseFactory();
     * Creates an instance of {@link DefaultNHttpClientConnection} based on the 
     * given {@link IOSession}. 
     * <p> 
     * This method can be overridden in a super class in order to provide 
     * a different implementation of the {@link NHttpClientIOTarget} interface. 
     * @param session the underlying I/O session. 
     * @return newly created HTTP connection. 
    protected NHttpClientIOTarget createConnection(final IOSession session) {
Contextual code suggestions in your IDE  Get Codota for Java