public DefaultHttpRequestParserFactory(final LineParser lineParser, final HttpRequestFactory requestFactory) { super(); this.lineParser = lineParser != null ? lineParser : BasicLineParserHC4.INSTANCE; this.requestFactory = requestFactory != null ? requestFactory : DefaultHttpRequestFactoryHC4.INSTANCE; }
/** * Creates new instance of DefaultHttpRequestParser. * * @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 requestFactory the response factory. If <code>null</code> * {@link DefaultHttpRequestFactoryHC4#INSTANCE} will be used. * @param constraints the message constraints. If <code>null</code> * {@link MessageConstraints#DEFAULT} will be used. * * @since 4.3 */ public DefaultHttpRequestParser( final SessionInputBuffer buffer, final LineParser lineParser, final HttpRequestFactory requestFactory, final MessageConstraints constraints) { super(buffer, lineParser, constraints); this.requestFactory = requestFactory != null ? requestFactory : DefaultHttpRequestFactoryHC4.INSTANCE; this.lineBuf = new CharArrayBuffer(128); }