org.apache.http
Interface ConnectionReuseStrategy

- public interface ConnectionReuseStrategy
Interface for deciding whether a connection should be kept alive.
- Since:
- 4.0
- Version:
- $Revision: 391135 $
|
Method Summary |
boolean |
keepAlive(HttpResponse response)
Tells if the connection used to receive a response should be closed or
kept open. |
keepAlive
public boolean keepAlive(HttpResponse response)
- 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.