|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.http.impl.DefaultConnectionReuseStrategy
Default implementation of a strategy deciding about connection re-use.
| Constructor Summary | |
DefaultConnectionReuseStrategy()
|
|
| Method Summary | |
boolean |
keepAlive(HttpResponse response,
HttpContext context)
Decides whether a connection can be kept open after a request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultConnectionReuseStrategy()
| Method Detail |
public boolean keepAlive(HttpResponse response,
HttpContext context)
ConnectionReuseStrategyfalse, the caller MUST
close the connection to correctly implement the HTTP protocol.
If it returns true, the caller SHOULD attempt to
keep the connection open for reuse with another request.
false is returned.
The stale connection check MUST NOT be triggered by a
connection reuse strategy.
keepAlive in interface ConnectionReuseStrategyresponse - The last response received over that connection.context - the context in which the connection is being
used.
true if the connection is allowed to be reused, or
false if it MUST NOT be reused
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||