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

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

Introduction

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

Prototype

public int getMinor() 

Source Link

Usage

From source file:org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.java

public int getResponseCode() {
    if (responseCode != -1)
        return responseCode;
    HttpVersion version = getMethod.getEffectiveVersion();
    if (version == null) {
        responseCode = -1;/*from  w w w  .  j  a v  a2s  .c o m*/
        httpVersion = 1;
        return responseCode;
    }
    httpVersion = version.getMinor();
    responseCode = getMethod.getStatusCode();
    return responseCode;
}