@@ -185,6 +185,7 @@ private class DefaultRequestBodyUriSpec implements RequestBodyUriSpec {
185
185
this .httpMethod = httpMethod ;
186
186
}
187
187
188
+
188
189
@ Override
189
190
public RequestBodySpec uri (String uriTemplate , Object ... uriVariables ) {
190
191
attribute (URI_TEMPLATE_ATTRIBUTE , uriTemplate );
@@ -242,18 +243,6 @@ public DefaultRequestBodyUriSpec headers(Consumer<HttpHeaders> headersConsumer)
242
243
return this ;
243
244
}
244
245
245
- @ Override
246
- public RequestBodySpec attribute (String name , Object value ) {
247
- this .attributes .put (name , value );
248
- return this ;
249
- }
250
-
251
- @ Override
252
- public RequestBodySpec attributes (Consumer <Map <String , Object >> attributesConsumer ) {
253
- attributesConsumer .accept (this .attributes );
254
- return this ;
255
- }
256
-
257
246
@ Override
258
247
public DefaultRequestBodyUriSpec accept (MediaType ... acceptableMediaTypes ) {
259
248
getHeaders ().setAccept (Arrays .asList (acceptableMediaTypes ));
@@ -302,6 +291,18 @@ public DefaultRequestBodyUriSpec ifNoneMatch(String... ifNoneMatches) {
302
291
return this ;
303
292
}
304
293
294
+ @ Override
295
+ public RequestBodySpec attribute (String name , Object value ) {
296
+ this .attributes .put (name , value );
297
+ return this ;
298
+ }
299
+
300
+ @ Override
301
+ public RequestBodySpec attributes (Consumer <Map <String , Object >> attributesConsumer ) {
302
+ attributesConsumer .accept (this .attributes );
303
+ return this ;
304
+ }
305
+
305
306
@ Override
306
307
public RequestBodySpec context (Function <Context , Context > contextModifier ) {
307
308
this .contextModifier = (this .contextModifier != null ?
@@ -497,12 +498,14 @@ private static class DefaultResponseSpec implements ResponseSpec {
497
498
498
499
private final List <StatusHandler > statusHandlers = new ArrayList <>(1 );
499
500
501
+
500
502
DefaultResponseSpec (Mono <ClientResponse > responseMono , Supplier <HttpRequest > requestSupplier ) {
501
503
this .responseMono = responseMono ;
502
504
this .requestSupplier = requestSupplier ;
503
505
this .statusHandlers .add (DEFAULT_STATUS_HANDLER );
504
506
}
505
507
508
+
506
509
@ Override
507
510
public ResponseSpec onStatus (Predicate <HttpStatus > statusPredicate ,
508
511
Function <ClientResponse , Mono <? extends Throwable >> exceptionFunction ) {
0 commit comments