public class HttpURLConnectionResponseAdapter extends java.lang.Object implements HttpResponse
| Constructor and Description |
|---|
HttpURLConnectionResponseAdapter(java.net.HttpURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
java.lang.String |
getReasonPhrase() |
int |
getStatusCode() |
java.lang.Object |
unwrap()
Returns the underlying response object, in case you need to work on it
directly.
|
public HttpURLConnectionResponseAdapter(java.net.HttpURLConnection connection)
public java.io.InputStream getContent()
throws java.io.IOException
getContent in interface HttpResponsejava.io.IOExceptionpublic int getStatusCode()
throws java.io.IOException
getStatusCode in interface HttpResponsejava.io.IOExceptionpublic java.lang.String getReasonPhrase()
throws java.lang.Exception
getReasonPhrase in interface HttpResponsejava.lang.Exceptionpublic java.lang.Object unwrap()
HttpResponseunwrap in interface HttpResponse