|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectoauthP5.oauth.Response
public class Response
Represents an HTTP Response.
| Method Summary | |
|---|---|
String |
getBody()
Obtains the HTTP Response body |
int |
getCode()
Obtains the HTTP status code |
String |
getHeader(String name)
Obtains a single HTTP Header value, or null if undefined |
Map<String,String> |
getHeaders()
Obtains a Map containing the HTTP Response Headers |
InputStream |
getStream()
Obtains the meaningful stream of the HttpUrlConnection, either inputStream or errorInputStream, depending on the status code |
boolean |
isSuccessful()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isSuccessful()
public String getBody()
public InputStream getStream()
public int getCode()
public Map<String,String> getHeaders()
Map containing the HTTP Response Headers
public String getHeader(String name)
name - the header name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||