|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.my.webproxy.beans.http.ResponseImpl
public class ResponseImpl
This class is the implementation of the methods defined in the (@link edu.wisc.my.webproxy.beans.http.Response) interface
| Field Summary |
|---|
| Fields inherited from interface edu.wisc.my.webproxy.beans.http.Response |
|---|
SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_SEE_OTHER, SC_TEMPORARY_REDIRECT |
| Constructor Summary | |
|---|---|
ResponseImpl(org.apache.http.client.methods.HttpUriRequest method,
org.apache.http.client.HttpClient client)
Creates a response object |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResponseImpl(org.apache.http.client.methods.HttpUriRequest method,
org.apache.http.client.HttpClient client)
throws HttpTimeoutException,
IOException
method - the HttpUriRequest used to make the remote requestclient - the HttpClient client instance that made the request
HttpTimeoutException
IOException| Method Detail |
|---|
public InputStream getResponseBodyAsStream()
Response
getResponseBodyAsStream in interface Responsepublic String getContentType()
Response
getContentType in interface Responsepublic IHeader[] getHeaders()
Response
getHeaders in interface Responsepublic int getStatusCode()
Response
getStatusCode in interface Responsepublic String getRequestUrl()
getRequestUrl in interface Responsepublic void close()
Response
close in interface Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||