Example usage for org.apache.commons.httpclient HttpVersion equals

List of usage examples for org.apache.commons.httpclient HttpVersion equals

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpVersion equals.

Prototype

public boolean equals(HttpVersion paramHttpVersion) 

Source Link

Usage

From source file:org.mule.transport.http.HttpResponse.java

/**
 * The HTTTP spec suggests that for HTTP 1.1 persistent connections should be used, 
 * for HTTP 1.0 the connection should not be kept alive. This method sets up the keepAlive flag
 * according to the <code>version</code> that was passed in.
 *//* ww  w . ja  va2  s .c  o  m*/
protected void setupKeepAliveFromRequestVersion(HttpVersion version) {
    setKeepAlive(version.equals(HttpVersion.HTTP_1_1));
}