Commit 893fd6a
Revert RoutingContext#user() returning UserContext to User.
Motivation:
RoutingContext#user() method returns the io.vertx.ext.auth.User interface in Vert.x 4.x, its return type has been change to UserContext instead (in addition of other changes), as UserContext is the preferred API for interacting with the user and the User interface actually represents the User.
However, there is nothing wrong with having the user method returns the io.vertx.ext.auth.User interface, since the User interface is still the API for accessing user informations. The UserContext API can be returned from a userContext method instead. This avoids breaking the contract of the user method between 4.x and 5.0
Changes:
Introduce a new userContext method returning the UserContext and change the return type of the user method to return the User type.1 parent c78b48b commit 893fd6a
File tree
38 files changed
+125
-131
lines changed- vertx-web-api-service/src
- main/java/io/vertx/ext/web/api/service/impl
- test/java/io/vertx/ext/web/api/service/tests
- vertx-web-graphql/src/main/java/examples
- vertx-web-openapi-router/src/test/java/io/vertx/router/test/e2e
- vertx-web/src
- main
- asciidoc
- java
- examples
- io/vertx/ext/web
- handler
- impl
- sockjs/impl
- impl
- test/java/io/vertx/ext/web/tests/handler
- sockjs
38 files changed
+125
-131
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
1212 | | - | |
| 1212 | + | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
| 839 | + | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
| |||
871 | 870 | | |
872 | 871 | | |
873 | 872 | | |
874 | | - | |
| 873 | + | |
875 | 874 | | |
876 | 875 | | |
877 | 876 | | |
| |||
1268 | 1267 | | |
1269 | 1268 | | |
1270 | 1269 | | |
1271 | | - | |
1272 | | - | |
| 1270 | + | |
| 1271 | + | |
1273 | 1272 | | |
1274 | 1273 | | |
1275 | 1274 | | |
| |||
1495 | 1494 | | |
1496 | 1495 | | |
1497 | 1496 | | |
1498 | | - | |
| 1497 | + | |
1499 | 1498 | | |
1500 | 1499 | | |
1501 | 1500 | | |
| |||
1947 | 1946 | | |
1948 | 1947 | | |
1949 | 1948 | | |
1950 | | - | |
| 1949 | + | |
1951 | 1950 | | |
1952 | 1951 | | |
1953 | 1952 | | |
| |||
1958 | 1957 | | |
1959 | 1958 | | |
1960 | 1959 | | |
1961 | | - | |
| 1960 | + | |
1962 | 1961 | | |
1963 | 1962 | | |
1964 | 1963 | | |
| |||
1968 | 1967 | | |
1969 | 1968 | | |
1970 | 1969 | | |
1971 | | - | |
| 1970 | + | |
1972 | 1971 | | |
1973 | 1972 | | |
1974 | 1973 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
227 | 236 | | |
228 | 237 | | |
229 | 238 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments