public class OAuthResponse
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Obtains the HTTP Response body
|
InputStream |
getBodyStream()
Obtains the meaningful stream of the HttpUrlConnection, either inputStream or errorInputStream, depending on the
status code
|
int |
getCode()
Obtains the HTTP status code
|
java.lang.String |
getHeader(java.lang.String name)
Obtains a single HTTP Header value, or null if not present.
|
HttpResponse |
getHttpResponse() |
public java.lang.String getBody()
public InputStream getBodyStream()
public HttpResponse getHttpResponse()
public int getCode()
@Nullable public java.lang.String getHeader(java.lang.String name)
name
- the header name