List of usage examples for org.apache.http.impl.client DefaultConnectionKeepAliveStrategy subclass-usage
From source file com.cisco.oss.foundation.http.apache.InfraConnectionKeepAliveStrategy.java
/** * Created by Yair Ogen on 1/26/14. */ public class InfraConnectionKeepAliveStrategy extends DefaultConnectionKeepAliveStrategy { private long idleTimeout = -1;
From source file org.sonatype.nexus.apachehttpclient.NexusConnectionKeepAliveStrategy.java
/**
* Nexus connection keep alive strategy, that differs from the HC4 default one only in one thing: when server does
* not state timeout, it never says "indefinite" (meaning pool it forever), but instead a finite amount of time.
*
* @author cstamas
* @since 2.3
From source file org.sonatype.nexus.internal.httpclient.NexusConnectionKeepAliveStrategy.java
/**
* Nexus connection keep alive strategy, that differs from the HC4 default one only in one thing: when server does
* not state timeout, it never says "indefinite" (meaning pool it forever), but instead a finite amount of time.
*
* @since 2.3
*/
From source file org.openrepose.core.services.httpclient.impl.ConnectionKeepAliveWithTimeoutStrategy.java
/**
* Custom keep alive strategy that defaults to the non-standard Keep-Alive header to communicate to the client the
* period of time in seconds they intend to keep the connection alive on the server side. If this
* header is present in the response, the value in this header will be used to determine the maximum
* length of time to keep a persistent connection open for.
* <p/>
From source file com.normalexception.app.rx8club.httpclient.KeepAliveStrategy.java
/** * Custom Keep alive strategy */ public class KeepAliveStrategy extends DefaultConnectionKeepAliveStrategy { private static final int KAL_TIME = 30; // seconds