org.apache.http.impl.NoConnectionReuseStrategy.java Source code

Java tutorial

Introduction

Here is the source code for org.apache.http.impl.NoConnectionReuseStrategy.java

Source

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;
    }
}