public DefaultHttpResponseParserFactory( final LineParser lineParser, final HttpResponseFactory responseFactory) { super(); this.lineParser = lineParser != null ? lineParser : BasicLineParserHC4.INSTANCE; this.responseFactory = responseFactory != null ? responseFactory : DefaultHttpResponseFactoryHC4.INSTANCE; }
public DefaultHttpResponseParserFactory(final LineParser lineParser, final HttpResponseFactory responseFactory) { super(); this.lineParser = lineParser != null ? lineParser : BasicLineParserHC4.INSTANCE; this.responseFactory = responseFactory != null ? responseFactory : DefaultHttpResponseFactoryHC4.INSTANCE; }
/** * Creates new instance of DefaultHttpResponseParser. * * @param buffer the session input buffer. * @param lineParser the line parser. If <code>null</code> * {@link org.apache.http.message.BasicLineParserHC4#INSTANCE} will be used. * @param responseFactory HTTP response factory. If <code>null</code> * {@link DefaultHttpResponseFactoryHC4#INSTANCE} will be used. * @param constraints the message constraints. If <code>null</code> * {@link MessageConstraints#DEFAULT} will be used. * * @since 4.3 */ public DefaultHttpResponseParser( final SessionInputBuffer buffer, final LineParser lineParser, final HttpResponseFactory responseFactory, final MessageConstraints constraints) { super(buffer, lineParser, constraints); this.responseFactory = responseFactory != null ? responseFactory : DefaultHttpResponseFactoryHC4.INSTANCE; this.lineBuf = new CharArrayBuffer(128); }
/** * Creates new instance of DefaultHttpResponseParser. * * @param buffer the session input buffer. * @param lineParser the line parser. If <code>null</code> * {@link org.apache.http.message.BasicLineParserHC4#INSTANCE} will be used * @param responseFactory the response factory. If <code>null</code> * {@link DefaultHttpResponseFactoryHC4#INSTANCE} will be used. * @param constraints the message constraints. If <code>null</code> * {@link MessageConstraints#DEFAULT} will be used. * * @since 4.3 */ public DefaultHttpResponseParser( final SessionInputBuffer buffer, final LineParser lineParser, final HttpResponseFactory responseFactory, final MessageConstraints constraints) { super(buffer, lineParser, constraints); this.responseFactory = responseFactory != null ? responseFactory : DefaultHttpResponseFactoryHC4.INSTANCE; this.lineBuf = new CharArrayBuffer(128); }