Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http
Interface ConnectionReuseStrategy  view ConnectionReuseStrategy download ConnectionReuseStrategy.java


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.
 

Method Detail

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.