org.apache.http
Interface ConnectionReuseStrategy
- All Known Implementing Classes:
- DefaultConnectionReuseStrategy
public interface ConnectionReuseStrategy
Interface for deciding whether a connection should be kept alive.
- Since:
- 4.0
- Version:
- $Revision: 391135 $
- Author:
- Oleg Kalnichevski
Method Summary |
boolean |
keepAlive(HttpResponse response)
Tells if the connection used to receive a response should be closed or
kept open. |
keepAlive
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.
- Parameters:
response
- The response whose connection is concerned.
- Returns:
- true if the connection is to be kept open, false if it is to be
closed.
Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.