类 RestTemplate.HttpEntityRequestCallback
java.lang.Object
cn.taketoday.web.client.RestTemplate.AcceptHeaderRequestCallback
cn.taketoday.web.client.RestTemplate.HttpEntityRequestCallback
- 所有已实现的接口:
RequestCallback
- 封闭类:
- RestTemplate
private class RestTemplate.HttpEntityRequestCallback
extends RestTemplate.AcceptHeaderRequestCallback
Request callback implementation that writes the given object to the request stream.
-
字段概要
字段 -
构造器概要
构造器构造器说明HttpEntityRequestCallback(Object requestBody) HttpEntityRequestCallback(Object requestBody, Type responseType) -
方法概要
修饰符和类型方法说明voiddoWithRequest(ClientHttpRequest httpRequest) Gets called byRestTemplate.execute(java.lang.String, cn.taketoday.http.HttpMethod, cn.taketoday.web.client.RequestCallback, cn.taketoday.web.client.ResponseExtractor<T>, java.lang.Object...)with an openedClientHttpRequest.private voidlogBody(Object body, MediaType mediaType, HttpMessageConverter<?> converter)
-
字段详细资料
-
requestEntity
-
-
构造器详细资料
-
HttpEntityRequestCallback
-
HttpEntityRequestCallback
-
-
方法详细资料
-
doWithRequest
从接口复制的说明:RequestCallbackGets called byRestTemplate.execute(java.lang.String, cn.taketoday.http.HttpMethod, cn.taketoday.web.client.RequestCallback, cn.taketoday.web.client.ResponseExtractor<T>, java.lang.Object...)with an openedClientHttpRequest. Does not need to care about closing the request or about handling errors: this will all be handled by theRestTemplate.- 指定者:
doWithRequest在接口中RequestCallback- 覆盖:
doWithRequest在类中RestTemplate.AcceptHeaderRequestCallback- 参数:
httpRequest- the active HTTP request- 抛出:
IOException- in case of I/O errors
-
logBody
-