public ResponseInfo(HttpResponse paramHttpResponse, T paramT, boolean paramBoolean) { this.response = paramHttpResponse; this.result = paramT; this.resultFormCache = paramBoolean; if (paramHttpResponse != null) { this.locale = paramHttpResponse.getLocale(); paramT = paramHttpResponse.getStatusLine(); if (paramT != null) { this.statusCode = paramT.getStatusCode(); this.protocolVersion = paramT.getProtocolVersion(); } for (this.reasonPhrase = paramT.getReasonPhrase(); ; this.reasonPhrase = null) { paramHttpResponse = paramHttpResponse.getEntity(); if (paramHttpResponse == null) { break; } this.contentLength = paramHttpResponse.getContentLength(); this.contentType = paramHttpResponse.getContentType(); this.contentEncoding = paramHttpResponse.getContentEncoding(); return; this.statusCode = 0; this.protocolVersion = null; } this.contentLength = 0L; this.contentType = null; this.contentEncoding = null; return; } this.locale = null; this.statusCode = 0; this.protocolVersion = null; this.reasonPhrase = null; this.contentLength = 0L; this.contentType = null; this.contentEncoding = null; }