@@ -475,6 +475,7 @@ Builder defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate,
475475
476476 /**
477477 * Contract for specifying the URI for a request.
478+ *
478479 * @param <S> a self reference to the spec type
479480 */
480481 interface UriSpec <S extends RequestHeadersSpec <?>> {
@@ -518,6 +519,7 @@ interface UriSpec<S extends RequestHeadersSpec<?>> {
518519
519520 /**
520521 * Contract for specifying request headers leading up to the exchange.
522+ *
521523 * @param <S> a self reference to the spec type
522524 */
523525 interface RequestHeadersSpec <S extends RequestHeadersSpec <S >> {
@@ -701,6 +703,7 @@ default <T> T exchange(ExchangeFunction<T> exchangeFunction) {
701703 * @param exchangeFunction the function to handle the response with
702704 * @param <T> the type the response will be transformed to
703705 * @return the value returned from the exchange function, never {@code null}
706+ * @since 6.2.6
704707 */
705708 default <T > T exchangeForRequiredValue (RequiredValueExchangeFunction <T > exchangeFunction ) {
706709 return exchangeForRequiredValue (exchangeFunction , true );
@@ -763,12 +766,14 @@ default <T> T exchangeForRequiredValue(RequiredValueExchangeFunction<T> exchange
763766 * {@code exchangeFunction} is invoked, {@code false} to keep it open
764767 * @param <T> the type the response will be transformed to
765768 * @return the value returned from the exchange function, never {@code null}
769+ * @since 6.2.6
766770 */
767771 <T > T exchangeForRequiredValue (RequiredValueExchangeFunction <T > exchangeFunction , boolean close );
768772
769773
770774 /**
771775 * Defines the contract for {@link #exchange(ExchangeFunction)}.
776+ *
772777 * @param <T> the type the response will be transformed to
773778 */
774779 @ FunctionalInterface
@@ -787,6 +792,8 @@ interface ExchangeFunction<T> {
787792
788793 /**
789794 * Variant of {@link ExchangeFunction} returning a non-null required value.
795+ *
796+ * @since 6.2.6
790797 * @param <T> the type the response will be transformed to
791798 */
792799 @ FunctionalInterface
@@ -799,6 +806,7 @@ interface RequiredValueExchangeFunction<T> extends ExchangeFunction<T> {
799806 * @return the exchanged value, never {@code null}
800807 * @throws IOException in case of I/O errors
801808 */
809+ @ Override
802810 T exchange (HttpRequest clientRequest , ConvertibleClientHttpResponse clientResponse ) throws IOException ;
803811 }
804812
@@ -824,7 +832,6 @@ interface ConvertibleClientHttpResponse extends ClientHttpResponse {
824832 */
825833 @ Nullable
826834 <T > T bodyTo (ParameterizedTypeReference <T > bodyType );
827-
828835 }
829836 }
830837
@@ -1006,6 +1013,7 @@ interface ErrorHandler {
10061013
10071014 /**
10081015 * Contract for specifying request headers and URI for a request.
1016+ *
10091017 * @param <S> a self reference to the spec type
10101018 */
10111019 interface RequestHeadersUriSpec <S extends RequestHeadersSpec <S >> extends UriSpec <S >, RequestHeadersSpec <S > {
@@ -1018,5 +1026,4 @@ interface RequestHeadersUriSpec<S extends RequestHeadersSpec<S>> extends UriSpec
10181026 interface RequestBodyUriSpec extends RequestBodySpec , RequestHeadersUriSpec <RequestBodySpec > {
10191027 }
10201028
1021-
10221029}
0 commit comments