SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_SEE_OTHER, SC_TEMPORARY_REDIRECT| Constructor and Description |
|---|
ResponseImpl(org.apache.http.client.methods.HttpUriRequest method,
org.apache.http.client.HttpClient client)
Creates a response object
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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 requestHttpTimeoutExceptionIOExceptionpublic InputStream getResponseBodyAsStream()
ResponsegetResponseBodyAsStream in interface Responsepublic String getContentType()
ResponsegetContentType in interface Responsepublic IHeader[] getHeaders()
ResponsegetHeaders in interface Responsepublic int getStatusCode()
ResponsegetStatusCode in interface Responsepublic String getRequestUrl()
getRequestUrl in interface ResponseCopyright © 2016 Jasig. All Rights Reserved.