List of usage examples for org.apache.commons.httpclient HttpVersion equals
public boolean equals(HttpVersion paramHttpVersion)
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)); }