org.apache.http.impl.nio
Class DefaultNHttpClientConnectionFactory

java.lang.Object
  extended by org.apache.http.impl.nio.DefaultNHttpClientConnectionFactory
All Implemented Interfaces:
NHttpConnectionFactory<DefaultNHttpClientConnection>

@Immutable
public class DefaultNHttpClientConnectionFactory
extends Object
implements NHttpConnectionFactory<DefaultNHttpClientConnection>

Factory for plain (non-encrypted), non-blocking NHttpClientConnections.

The following parameters can be used to customize the behavior of this class:

Since:
4.2

Constructor Summary
DefaultNHttpClientConnectionFactory(HttpParams params)
           
DefaultNHttpClientConnectionFactory(HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)
           
 
Method Summary
 DefaultNHttpClientConnection createConnection(IOSession session)
           
protected  DefaultNHttpClientConnection createConnection(IOSession session, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNHttpClientConnectionFactory

public DefaultNHttpClientConnectionFactory(HttpResponseFactory responseFactory,
                                           ByteBufferAllocator allocator,
                                           HttpParams params)

DefaultNHttpClientConnectionFactory

public DefaultNHttpClientConnectionFactory(HttpParams params)
Method Detail

createConnection

protected DefaultNHttpClientConnection createConnection(IOSession session,
                                                        HttpResponseFactory responseFactory,
                                                        ByteBufferAllocator allocator,
                                                        HttpParams params)

createConnection

public DefaultNHttpClientConnection createConnection(IOSession session)
Specified by:
createConnection in interface NHttpConnectionFactory<DefaultNHttpClientConnection>


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.