()
| 116 | } |
| 117 | |
| 118 | private HttpUtils check() { |
| 119 | if (null == httpResponse) { |
| 120 | throw new AuthException("Invalid SimpleHttpResponse."); |
| 121 | } |
| 122 | if (!httpResponse.isSuccess()) { |
| 123 | throw new AuthException(httpResponse.getError()); |
| 124 | } |
| 125 | return this; |
| 126 | } |
| 127 | |
| 128 | public String getBody() { |
| 129 | return this.check().getHttpResponse().getBody(); |