File tree 3 files changed +36
-3
lines changed
spring-test/src/main/java/org/springframework/test/web/reactive/server
spring-web/src/main/java/org/springframework/http/client/reactive
spring-webflux/src/main/java/org/springframework/web/reactive/function/client
3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -176,6 +176,16 @@ public HttpStatusCode getStatus() {
176
176
return this .response .getStatusCode ();
177
177
}
178
178
179
+ /**
180
+ * Return the HTTP status code as an integer.
181
+ * @since 5.1.10
182
+ * @deprecated as of 6.0, in favor of {@link #getStatus()}
183
+ */
184
+ @ Deprecated (since = "6.0" , forRemoval = true )
185
+ public int getRawStatusCode () {
186
+ return getStatus ().value ();
187
+ }
188
+
179
189
/**
180
190
* Return the response headers received from the server.
181
191
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -46,6 +46,18 @@ default String getId() {
46
46
*/
47
47
HttpStatusCode getStatusCode ();
48
48
49
+ /**
50
+ * Return the HTTP status code as an integer.
51
+ * @return the HTTP status as an integer value
52
+ * @since 5.0.6
53
+ * @see #getStatusCode()
54
+ * @deprecated as of 6.0, in favor of {@link #getStatusCode()}
55
+ */
56
+ @ Deprecated (since = "6.0" , forRemoval = true )
57
+ default int getRawStatusCode () {
58
+ return getStatusCode ().value ();
59
+ }
60
+
49
61
/**
50
62
* Return a read-only map of response cookies received from the server.
51
63
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -57,6 +57,17 @@ public interface ClientResponse {
57
57
*/
58
58
HttpStatusCode statusCode ();
59
59
60
+ /**
61
+ * Return the raw status code of this response.
62
+ * @return the HTTP status as an integer value
63
+ * @since 5.1
64
+ * @deprecated as of 6.0, in favor of {@link #statusCode()}
65
+ */
66
+ @ Deprecated (since = "6.0" , forRemoval = true )
67
+ default int rawStatusCode () {
68
+ return statusCode ().value ();
69
+ }
70
+
60
71
/**
61
72
* Return the headers of this response.
62
73
*/
You can’t perform that action at this time.
0 commit comments