@Override protected NHttpMessageParser<HttpResponse> createResponseParser( final SessionInputBuffer buffer, final HttpResponseFactory responseFactory, final HttpParams params) { return new LoggingNHttpMessageParser( super.createResponseParser(buffer, responseFactory, params)); }
/** * Creates a new instance of this class given the underlying I/O session. * * @param session the underlying I/O session. * @param responseFactory HTTP response factory. * @param allocator byte buffer allocator. * @param params HTTP parameters. * * @deprecated (4.3) use {@link DefaultNHttpClientConnection#DefaultNHttpClientConnection( * IOSession, int, int, ByteBufferAllocator, CharsetDecoder, CharsetEncoder, * MessageConstraints, ContentLengthStrategy, ContentLengthStrategy, * NHttpMessageWriterFactory, NHttpMessageParserFactory)} */ @Deprecated public DefaultNHttpClientConnection( final IOSession session, final HttpResponseFactory responseFactory, final ByteBufferAllocator allocator, final HttpParams params) { super(session, allocator, params); Args.notNull(responseFactory, "Response factory"); this.responseParser = createResponseParser(this.inbuf, responseFactory, params); this.requestWriter = createRequestWriter(this.outbuf, params); this.hasBufferedInput = false; this.hasBufferedOutput = false; this.session.setBufferStatus(this); }
/** * Creates a new instance of this class given the underlying I/O session. * * @param session the underlying I/O session. * @param responseFactory HTTP response factory. * @param allocator byte buffer allocator. * @param params HTTP parameters. * * @deprecated (4.3) use {@link DefaultNHttpClientConnection#DefaultNHttpClientConnection( * IOSession, int, int, ByteBufferAllocator, CharsetDecoder, CharsetEncoder, * MessageConstraints, ContentLengthStrategy, ContentLengthStrategy, * NHttpMessageWriterFactory, NHttpMessageParserFactory)} */ @Deprecated public DefaultNHttpClientConnection( final IOSession session, final HttpResponseFactory responseFactory, final ByteBufferAllocator allocator, final HttpParams params) { super(session, allocator, params); Args.notNull(responseFactory, "Response factory"); this.responseParser = createResponseParser(this.inbuf, responseFactory, params); this.requestWriter = createRequestWriter(this.outbuf, params); this.hasBufferedInput = false; this.hasBufferedOutput = false; this.session.setBufferStatus(this); }