/** * Creates an instance of AbstractMessageWriterHC4. * * @param buffer the session output buffer. * @param formatter the line formatter. * @param params HTTP parameters. * * @deprecated (4.3) use * {@link AbstractMessageWriterHC4#AbstractMessageWriterHC4(SessionOutputBuffer, LineFormatter)} */ @Deprecated public AbstractMessageWriterHC4(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params) { super(); Args.notNull(buffer, "Session input buffer"); this.sessionBuffer = buffer; this.lineBuf = new CharArrayBuffer(128); this.lineFormatter = (formatter != null) ? formatter : BasicLineFormatterHC4.INSTANCE; }
public DefaultHttpRequestWriterFactory(final LineFormatter lineFormatter) { super(); this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE; }
public DefaultHttpResponseWriterFactory(final LineFormatter lineFormatter) { super(); this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE; }
/** * Creates an instance of AbstractMessageWriterHC4. * * @param buffer the session output buffer. * @param formatter the line formatter If <code>null</code> {@link BasicLineFormatterHC4#INSTANCE} * will be used. * * @since 4.3 */ public AbstractMessageWriterHC4( final SessionOutputBuffer buffer, final LineFormatter formatter) { super(); this.sessionBuffer = Args.notNull(buffer, "Session input buffer"); this.lineFormatter = (formatter != null) ? formatter : BasicLineFormatterHC4.INSTANCE; this.lineBuf = new CharArrayBuffer(128); }