|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.client.RestTemplate.AcceptHeaderRequestCallback org.springframework.web.client.RestTemplate.HttpEntityRequestCallback
private class RestTemplate.HttpEntityRequestCallback
Request callback implementation that writes the given object to the request stream.
Field Summary | |
---|---|
private HttpEntity |
requestEntity
|
Constructor Summary | |
---|---|
private |
RestTemplate.HttpEntityRequestCallback(java.lang.Object requestBody)
|
private |
RestTemplate.HttpEntityRequestCallback(java.lang.Object requestBody,
java.lang.Class<?> responseType)
|
Method Summary | |
---|---|
void |
doWithRequest(ClientHttpRequest httpRequest)
Gets called by RestTemplate.execute(java.lang.String, org.springframework.http.HttpMethod, org.springframework.web.client.RequestCallback, org.springframework.web.client.ResponseExtractor with an opened ClientHttpRequest . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final HttpEntity requestEntity
Constructor Detail |
---|
private RestTemplate.HttpEntityRequestCallback(java.lang.Object requestBody)
private RestTemplate.HttpEntityRequestCallback(java.lang.Object requestBody, java.lang.Class<?> responseType)
Method Detail |
---|
public void doWithRequest(ClientHttpRequest httpRequest) throws java.io.IOException
RequestCallback
RestTemplate.execute(java.lang.String, org.springframework.http.HttpMethod, org.springframework.web.client.RequestCallback, org.springframework.web.client.ResponseExtractor, java.lang.Object...)
with an opened ClientHttpRequest
.
Does not need to care about closing the request or about handling errors:
this will all be handled by the RestTemplate
.
doWithRequest
in interface RequestCallback
doWithRequest
in class RestTemplate.AcceptHeaderRequestCallback
httpRequest
- the active HTTP request
java.io.IOException
- in case of I/O errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |