|
Last change
on this file since 14119 was 4231, checked in by stoecker, 14 years ago |
|
add signpost and metadata extractor code to repository directly
|
|
File size:
448 bytes
|
| Line | |
|---|
| 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 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.