org.apache.http.impl.client
Class DefaultConnectionKeepAliveStrategyHC4

java.lang.Object
  extended by org.apache.http.impl.client.DefaultConnectionKeepAliveStrategyHC4
All Implemented Interfaces:
org.apache.http.conn.ConnectionKeepAliveStrategy

@Immutable
public class DefaultConnectionKeepAliveStrategyHC4
extends java.lang.Object
implements org.apache.http.conn.ConnectionKeepAliveStrategy

Default implementation of a strategy deciding duration that a connection can remain idle. The default implementation looks solely at the 'Keep-Alive' header's timeout token.

Since:
4.0

Field Summary
static DefaultConnectionKeepAliveStrategyHC4 INSTANCE
           
 
Constructor Summary
DefaultConnectionKeepAliveStrategyHC4()
           
 
Method Summary
 long getKeepAliveDuration(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultConnectionKeepAliveStrategyHC4 INSTANCE
Constructor Detail

DefaultConnectionKeepAliveStrategyHC4

public DefaultConnectionKeepAliveStrategyHC4()
Method Detail

getKeepAliveDuration

public long getKeepAliveDuration(org.apache.http.HttpResponse response,
                                 org.apache.http.protocol.HttpContext context)
Specified by:
getKeepAliveDuration in interface org.apache.http.conn.ConnectionKeepAliveStrategy