Java tutorial
package org.apache.http.impl; import org.apache.http.ConnectionReuseStrategy; import org.apache.http.HttpResponse; import org.apache.http.annotation.Immutable; import org.apache.http.protocol.HttpContext; @Immutable public class NoConnectionReuseStrategy implements ConnectionReuseStrategy { public static final NoConnectionReuseStrategy INSTANCE; static { INSTANCE = new NoConnectionReuseStrategy(); } public boolean keepAlive(HttpResponse httpResponse, HttpContext httpContext) { return false; } }