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 HttpResponse
java.io.IOException
public int getStatusCode() throws java.io.IOException
getStatusCode
in interface HttpResponse
java.io.IOException
public java.lang.String getReasonPhrase() throws java.lang.Exception
getReasonPhrase
in interface HttpResponse
java.lang.Exception
public java.lang.Object unwrap()
HttpResponse
unwrap
in interface HttpResponse