Java 类org.apache.http.message.LineFormatter 实例源码

项目:lams    文件:AbstractMessageWriter.java   
/**
 * 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;
}
项目:remote-files-sync    文件:AbstractMessageWriterHC4.java   
/**
 * 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;
}
项目:Visit    文件:AbstractMessageWriterHC4.java   
/**
 * 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;
}
项目:ZTLib    文件:AbstractMessageWriterHC4.java   
/**
 * 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;
}
项目:lams    文件:HttpResponseWriter.java   
public HttpResponseWriter(final SessionOutputBuffer buffer,
                          final LineFormatter formatter,
                          final HttpParams params) {
    super(buffer, formatter, params);
}
项目:lams    文件:HttpRequestWriter.java   
public HttpRequestWriter(final SessionOutputBuffer buffer,
                         final LineFormatter formatter,
                         final HttpParams params) {
    super(buffer, formatter, params);
}
项目:remote-files-sync    文件:DefaultHttpRequestWriterFactory.java   
public DefaultHttpRequestWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:remote-files-sync    文件:DefaultHttpResponseWriterFactory.java   
public DefaultHttpResponseWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:Visit    文件:DefaultHttpRequestWriterFactory.java   
public DefaultHttpRequestWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:Visit    文件:DefaultHttpResponseWriterFactory.java   
public DefaultHttpResponseWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:ZTLib    文件:DefaultHttpRequestWriterFactory.java   
public DefaultHttpRequestWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:ZTLib    文件:DefaultHttpResponseWriterFactory.java   
public DefaultHttpResponseWriterFactory(final LineFormatter lineFormatter) {
    super();
    this.lineFormatter = lineFormatter != null ? lineFormatter : BasicLineFormatterHC4.INSTANCE;
}
项目:remote-files-sync    文件:AbstractMessageWriterHC4.java   
/**
 * 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);
}
项目:Visit    文件:AbstractMessageWriterHC4.java   
/**
 * 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);
}
项目:ZTLib    文件:AbstractMessageWriterHC4.java   
/**
 * 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);
}
项目:remote-files-sync    文件:DefaultHttpResponseWriter.java   
/**
 * 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);
}
项目:remote-files-sync    文件:DefaultHttpRequestWriter.java   
/**
 * 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);
}
项目:Visit    文件:DefaultHttpResponseWriter.java   
/**
 * 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);
}
项目:Visit    文件:DefaultHttpRequestWriter.java   
/**
 * 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);
}
项目:ZTLib    文件:DefaultHttpResponseWriter.java   
/**
 * 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);
}
项目:ZTLib    文件:DefaultHttpRequestWriter.java   
/**
 * 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);
}