|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.http.client.SimpleClientHttpResponse
final class SimpleClientHttpResponse
ClientHttpResponse implementation that uses standard J2SE facilities.
Obtained via the AbstractClientHttpRequest.execute().
| Field Summary | |
|---|---|
private java.net.HttpURLConnection |
connection
|
private HttpHeaders |
headers
|
| Constructor Summary | |
|---|---|
SimpleClientHttpResponse(java.net.HttpURLConnection connection)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this response, freeing any resources created. |
java.io.InputStream |
getBody()
Return the body of the message as an input stream. |
HttpHeaders |
getHeaders()
Return the headers of this message. |
HttpStatus |
getStatusCode()
Return the HTTP status code of the response. |
java.lang.String |
getStatusText()
Return the HTTP status text of the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.net.HttpURLConnection connection
private HttpHeaders headers
| Constructor Detail |
|---|
SimpleClientHttpResponse(java.net.HttpURLConnection connection)
| Method Detail |
|---|
public HttpStatus getStatusCode()
throws java.io.IOException
ClientHttpResponse
getStatusCode in interface ClientHttpResponsejava.io.IOException - in case of I/O errors
public java.lang.String getStatusText()
throws java.io.IOException
ClientHttpResponse
getStatusText in interface ClientHttpResponsejava.io.IOException - in case of I/O errorspublic HttpHeaders getHeaders()
HttpMessage
getHeaders in interface HttpMessage
public java.io.InputStream getBody()
throws java.io.IOException
HttpInputMessage
getBody in interface HttpInputMessagejava.io.IOException - in case of I/O Errorspublic void close()
ClientHttpResponse
close in interface ClientHttpResponse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||