|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.brickred.socialauth.util.Response
public class Response
Encapsulates the HTTP status, headers and the content.
| Method Summary | |
|---|---|
void |
close()
Closes the connection |
String |
getHeader(String name)
|
InputStream |
getInputStream()
Gets the response content via InputStream. |
String |
getResponseBodyAsString(String encoding)
Gets the response content as String using given encoding |
int |
getStatus()
Gets the response HTTP status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void close()
throws IOException
IOExceptionpublic String getHeader(String name)
public InputStream getInputStream()
throws IOException
IOExceptionpublic int getStatus()
public String getResponseBodyAsString(String encoding)
throws Exception
encoding - the encoding type
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||