163164165166167168169170171
req.addParam("rating", rating); Element response = req.execute(); if (!response.getName().equals(Params.RATING)) throw new BadServerResponseEx(response); return Integer.parseInt(response.getText()); }
979899100101102103104105106107
final ClientHttpResponse httpResponse = doExecute(httpMethod); if (httpResponse.getRawStatusCode() > 399) { throw new BadServerResponseEx(httpResponse.getStatusText() + " -- URI: " + httpMethod.getURI() + " -- Response Code: " + httpResponse.getRawStatusCode()); } byte[] data = null;