List of usage examples for org.apache.http.impl.nio.codecs DefaultHttpResponseParserFactory INSTANCE
DefaultHttpResponseParserFactory INSTANCE
To view the source code for org.apache.http.impl.nio.codecs DefaultHttpResponseParserFactory INSTANCE.
Click Source Link
From source file:org.apache.http.impl.nio.conn.DefaultClientAsyncConnectionFactory.java
public DefaultClientAsyncConnectionFactory(final NHttpMessageParserFactory<HttpResponse> responseParserFactory, final ByteBufferAllocator allocator) { super();/*w w w . j av a 2 s . c o m*/ this.responseFactory = createHttpResponseFactory(); this.responseParserFactory = responseParserFactory != null ? responseParserFactory : DefaultHttpResponseParserFactory.INSTANCE; this.allocator = allocator != null ? allocator : HeapByteBufferAllocator.INSTANCE; }
From source file:org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionFactory.java
public ManagedNHttpClientConnectionFactory(final NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, final NHttpMessageParserFactory<HttpResponse> responseParserFactory, final ByteBufferAllocator allocator) { super();// w w w .j a v a 2 s . c o m this.requestWriterFactory = requestWriterFactory != null ? requestWriterFactory : DefaultHttpRequestWriterFactory.INSTANCE; this.responseParserFactory = responseParserFactory != null ? responseParserFactory : DefaultHttpResponseParserFactory.INSTANCE; this.allocator = allocator != null ? allocator : HeapByteBufferAllocator.INSTANCE; }