类 RestTemplate.AcceptHeaderRequestCallback
java.lang.Object
cn.taketoday.web.client.RestTemplate.AcceptHeaderRequestCallback
- 所有已实现的接口:
RequestCallback
- 封闭类:
- RestTemplate
Request callback implementation that prepares the request's accept headers.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private booleancanReadResponse(Type responseType, HttpMessageConverter<?> converter) voiddoWithRequest(ClientHttpRequest request) 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 voidputSupportedMediaTypes(Type type, HttpMessageConverter<?> converter, HashSet<MediaType> allSupportedMediaTypes)
-
字段详细资料
-
responseType
-
-
构造器详细资料
-
AcceptHeaderRequestCallback
-
-
方法详细资料
-
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- 参数:
request- the active HTTP request- 抛出:
IOException- in case of I/O errors
-
canReadResponse
-
putSupportedMediaTypes
private void putSupportedMediaTypes(Type type, HttpMessageConverter<?> converter, HashSet<MediaType> allSupportedMediaTypes)
-