|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.client.DefaultConnectionKeepAliveStrategyHC4
@Immutable public class DefaultConnectionKeepAliveStrategyHC4
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.
| 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 |
|---|
public static final DefaultConnectionKeepAliveStrategyHC4 INSTANCE
| Constructor Detail |
|---|
public DefaultConnectionKeepAliveStrategyHC4()
| Method Detail |
|---|
public long getKeepAliveDuration(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
getKeepAliveDuration in interface org.apache.http.conn.ConnectionKeepAliveStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||