/** * Creates an instance of AbstractMessageWriter. * * @param buffer the session output buffer. * @param formatter the line formatter. * @param params HTTP parameters. */ public AbstractMessageWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params) { super(); if (buffer == null) { throw new IllegalArgumentException("Session input buffer may not be null"); } this.sessionBuffer = buffer; this.lineBuf = new CharArrayBuffer(128); this.lineFormatter = (formatter != null) ? formatter : BasicLineFormatter.DEFAULT; }
/** * 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 HttpResponseWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params) { super(buffer, formatter, params); }
public HttpRequestWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params) { super(buffer, formatter, params); }
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); }
/** * Creates an instance of DefaultHttpResponseWriter. * * @param buffer the session output buffer. * @param formatter the line formatter If <code>null</code> * {@link org.apache.http.message.BasicLineFormatterHC4#INSTANCE} * will be used. */ public DefaultHttpResponseWriter( final SessionOutputBuffer buffer, final LineFormatter formatter) { super(buffer, formatter); }
/** * Creates an instance of DefaultHttpRequestWriter. * * @param buffer the session output buffer. * @param formatter the line formatter If <code>null</code> * {@link org.apache.http.message.BasicLineFormatterHC4#INSTANCE} * will be used. */ public DefaultHttpRequestWriter( final SessionOutputBuffer buffer, final LineFormatter formatter) { super(buffer, formatter); }