signpost-core/src/main/java/oauth/signpost/http/HttpResponse.java
raw| 1 | package oauth.signpost.http; |
| 2 | |
| 3 | import java.io.IOException; |
| 4 | import java.io.InputStream; |
| 5 | |
| 6 | public interface HttpResponse { |
| 7 | |
| 8 | int getStatusCode() throws IOException; |
| 9 | |
| 10 | String getReasonPhrase() throws Exception; |
| 11 | |
| 12 | InputStream getContent() throws IOException; |
| 13 | |
| 14 | /** |
| 15 | * Returns the underlying response object, in case you need to work on it |
| 16 | * directly. |
| 17 | * |
| 18 | * @return the wrapped response object |
| 19 | */ |
| 20 | Object unwrap(); |
| 21 | } |