|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
Represents the data retrieved from a HTTP request.
| Field Summary | |
|---|---|
static int |
SC_MOVED_PERMANENTLY
|
static int |
SC_MOVED_TEMPORARILY
|
static int |
SC_SEE_OTHER
|
static int |
SC_TEMPORARY_REDIRECT
|
| Method Summary | |
|---|---|
void |
close()
Releases the HTTP connection made to the remote server |
String |
getContentType()
Retrieves the type of the content of response as a String |
IHeader[] |
getHeaders()
Retrieves all the response headers as an array of Headers |
String |
getRequestUrl()
|
InputStream |
getResponseBodyAsStream()
Retrieves the body of the response as an inputstream. |
int |
getStatusCode()
Retrieves the status code that is returned when a request is made |
| Field Detail |
|---|
static final int SC_MOVED_TEMPORARILY
static final int SC_MOVED_PERMANENTLY
static final int SC_SEE_OTHER
static final int SC_TEMPORARY_REDIRECT
| Method Detail |
|---|
InputStream getResponseBodyAsStream()
String getContentType()
IHeader[] getHeaders()
int getStatusCode()
String getRequestUrl()
void close()
none -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||