Polish RestClient Javadoc

See gh-31659
This commit is contained in:
johannesrost 2023-11-23 09:27:02 +01:00 committed by Stéphane Nicoll
parent 52b40ffb03
commit e95f8d2922
1 changed files with 7 additions and 7 deletions

View File

@ -673,26 +673,26 @@ public interface RestClient {
* .retrieve()
* .toBodilessEntity();
* </pre>
* @param body the body of the response
* @return the built response
* @param body the body of the request
* @return this builder
*/
RequestBodySpec body(Object body);
/**
* Set the body of the response to the given {@code Object}.
* Set the body of the request to the given {@code Object}.
* The parameter {@code bodyType} is used to capture the generic type.
* @param body the body of the response
* @param body the body of the request
* @param bodyType the type of the body, used to capture the generic type
* @return the built response
* @return this builder
*/
<T> RequestBodySpec body(T body, ParameterizedTypeReference<T> bodyType);
/**
* Set the body of the response to the given function that writes to
* Set the body of the request to the given function that writes to
* an {@link OutputStream}.
* @param body a function that takes an {@code OutputStream} and can
* throw an {@code IOException}
* @return the built response
* @return this builder
*/
RequestBodySpec body(StreamingHttpOutputMessage.Body body);
}