java.lang.Object
org.apache.http.impl.DefaultConnectionReuseStrategy
- All Implemented Interfaces:
- org.apache.http.ConnectionReuseStrategy
- public class DefaultConnectionReuseStrategy
- extends java.lang.Object
- implements org.apache.http.ConnectionReuseStrategy
Default implementation of a strategy deciding about connection re-use.
- Since:
- 4.0
- Version:
- $Revision: 376961 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConnectionReuseStrategy
public DefaultConnectionReuseStrategy()
keepAlive
public boolean keepAlive(org.apache.http.HttpResponse response)
- Description copied from interface:
org.apache.http.ConnectionReuseStrategy
- Tells if the connection used to receive a response should be closed or
kept open. Http processors should close the physical connection if this
method returns false. They should do their best to keep it open if this
method returns true.
- Specified by:
keepAlive in interface org.apache.http.ConnectionReuseStrategy