Code example for DefaultHttpResponseFactory

0
            final ByteBufferAllocator allocator,
            final SSLContextDetails ssl,
            final Map<String, SSLContext> sslByHostMap,
            final HttpParams params) {
        super(); 
        this.responseFactory = responseFactory != null ? responseFactory : new DefaultHttpResponseFactory();
        this.allocator = allocator != null ? allocator : new HeapByteBufferAllocator();
        this.ssl = ssl;
        this.sslByHostMap = sslByHostMap != null ? new ConcurrentHashMap<String, SSLContext>(sslByHostMap) : null;
        this.params = params != null ? params : new BasicHttpParams();
    } 
 
    public ClientConnFactory( 
            final SSLContextDetails ssl,
            final Map<String, SSLContext> sslByHostMap,
            final HttpParams params) {
        this(null, null, ssl, sslByHostMap, params);
    } 
 
    public ClientConnFactory( 
            final HttpParams params) {