Java 类org.apache.http.params.HttpParamConfig 实例源码

项目:remote-files-sync    文件:BasicConnFactory.java   
/**
 * @deprecated (4.3) use
 *   {@link BasicConnFactory#BasicConnFactory(SocketFactory, SSLSocketFactory, int,
 *     SocketConfig, ConnectionConfig)}.
 */
@Deprecated
public BasicConnFactory(final SSLSocketFactory sslfactory, final HttpParams params) {
    super();
    Args.notNull(params, "HTTP params");
    this.plainfactory = null;
    this.sslfactory = sslfactory;
    this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0);
    this.sconfig = HttpParamConfig.getSocketConfig(params);
    this.connFactory = new DefaultBHttpClientConnectionFactory(
            HttpParamConfig.getConnectionConfig(params));
}
项目:remote-files-sync    文件:ProxyClient.java   
/**
 * @deprecated (4.3) use {@link ProxyClient#ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)}
 */
@Deprecated
public ProxyClient(final HttpParams params) {
    this(null,
            HttpParamConfig.getConnectionConfig(params),
            HttpClientParamConfig.getRequestConfig(params));
}
项目:remote-files-sync    文件:AbstractMessageParserHC4.java   
/**
 * Creates an instance of AbstractMessageParserHC4.
 *
 * @param buffer the session input buffer.
 * @param parser the line parser.
 * @param params HTTP parameters.
 *
 * @deprecated (4.3) use {@link AbstractMessageParserHC4#AbstractMessageParserHC4(SessionInputBuffer,
 *   LineParser, MessageConstraints)}
 */
@Deprecated
public AbstractMessageParserHC4(
        final SessionInputBuffer buffer,
        final LineParser parser,
        final HttpParams params) {
    super();
    Args.notNull(buffer, "Session input buffer");
    Args.notNull(params, "HTTP parameters");
    this.sessionBuffer = buffer;
    this.messageConstraints = HttpParamConfig.getMessageConstraints(params);
    this.lineParser = (parser != null) ? parser : BasicLineParserHC4.INSTANCE;
    this.headerLines = new ArrayList<CharArrayBuffer>();
    this.state = HEAD_LINE;
}
项目:purecloud-iot    文件:ProxyClient.java   
/**
 * @deprecated (4.3) use {@link ProxyClient#ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)}
 */
@Deprecated
public ProxyClient(final HttpParams params) {
    this(null,
            HttpParamConfig.getConnectionConfig(params),
            HttpClientParamConfig.getRequestConfig(params));
}
项目:Visit    文件:BasicConnFactory.java   
/**
 * @deprecated (4.3) use
 *   {@link BasicConnFactory#BasicConnFactory(SocketFactory, SSLSocketFactory, int,
 *     SocketConfig, ConnectionConfig)}.
 */
@Deprecated
public BasicConnFactory(final SSLSocketFactory sslfactory, final HttpParams params) {
    super();
    Args.notNull(params, "HTTP params");
    this.plainfactory = null;
    this.sslfactory = sslfactory;
    this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0);
    this.sconfig = HttpParamConfig.getSocketConfig(params);
    this.connFactory = new DefaultBHttpClientConnectionFactory(
            HttpParamConfig.getConnectionConfig(params));
}
项目:Visit    文件:ProxyClient.java   
/**
 * @deprecated (4.3) use {@link ProxyClient#ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)}
 */
@Deprecated
public ProxyClient(final HttpParams params) {
    this(null,
            HttpParamConfig.getConnectionConfig(params),
            HttpClientParamConfig.getRequestConfig(params));
}
项目:Visit    文件:AbstractMessageParserHC4.java   
/**
 * Creates an instance of AbstractMessageParserHC4.
 *
 * @param buffer the session input buffer.
 * @param parser the line parser.
 * @param params HTTP parameters.
 *
 * @deprecated (4.3) use {@link AbstractMessageParserHC4#AbstractMessageParserHC4(SessionInputBuffer,
 *   LineParser, MessageConstraints)}
 */
@Deprecated
public AbstractMessageParserHC4(
        final SessionInputBuffer buffer,
        final LineParser parser,
        final HttpParams params) {
    super();
    Args.notNull(buffer, "Session input buffer");
    Args.notNull(params, "HTTP parameters");
    this.sessionBuffer = buffer;
    this.messageConstraints = HttpParamConfig.getMessageConstraints(params);
    this.lineParser = (parser != null) ? parser : BasicLineParserHC4.INSTANCE;
    this.headerLines = new ArrayList<CharArrayBuffer>();
    this.state = HEAD_LINE;
}
项目:ZTLib    文件:BasicConnFactory.java   
/**
 * @deprecated (4.3) use
 *   {@link BasicConnFactory#BasicConnFactory(SocketFactory, SSLSocketFactory, int,
 *     SocketConfig, ConnectionConfig)}.
 */
@Deprecated
public BasicConnFactory(final SSLSocketFactory sslfactory, final HttpParams params) {
    super();
    Args.notNull(params, "HTTP params");
    this.plainfactory = null;
    this.sslfactory = sslfactory;
    this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0);
    this.sconfig = HttpParamConfig.getSocketConfig(params);
    this.connFactory = new DefaultBHttpClientConnectionFactory(
            HttpParamConfig.getConnectionConfig(params));
}
项目:ZTLib    文件:ProxyClient.java   
/**
 * @deprecated (4.3) use {@link ProxyClient#ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)}
 */
@Deprecated
public ProxyClient(final HttpParams params) {
    this(null,
            HttpParamConfig.getConnectionConfig(params),
            HttpClientParamConfig.getRequestConfig(params));
}
项目:ZTLib    文件:AbstractMessageParserHC4.java   
/**
 * Creates an instance of AbstractMessageParserHC4.
 *
 * @param buffer the session input buffer.
 * @param parser the line parser.
 * @param params HTTP parameters.
 *
 * @deprecated (4.3) use {@link AbstractMessageParserHC4#AbstractMessageParserHC4(SessionInputBuffer,
 *   LineParser, MessageConstraints)}
 */
@Deprecated
public AbstractMessageParserHC4(
        final SessionInputBuffer buffer,
        final LineParser parser,
        final HttpParams params) {
    super();
    Args.notNull(buffer, "Session input buffer");
    Args.notNull(params, "HTTP parameters");
    this.sessionBuffer = buffer;
    this.messageConstraints = HttpParamConfig.getMessageConstraints(params);
    this.lineParser = (parser != null) ? parser : BasicLineParserHC4.INSTANCE;
    this.headerLines = new ArrayList<CharArrayBuffer>();
    this.state = HEAD_LINE;
}