Repository navigation
Commit d257cc8
committed
Remove engine.adapter and map Netty messages directly
The Netty connectors now build Restlet requests and responses directly from
Netty messages, without the ServerCall/ClientCall and ServerAdapter/
ClientAdapter layer.
- NettyServerHelper extends ServerHelper, NettyClientHelper extends
ClientHelper (two fewer inheritance levels, Sonar S110).
- NettyServerCall and the new NettyRequest take over ServerCall,
ServerAdapter and HttpRequest: lazy header parsing, headers and version
attributes, TLS client info, entity rules per status and method,
ConnectorService callbacks.
- NettyClientCall takes over ClientCall and ClientAdapter.
- Removed the org.restlet.engine.adapter package and the "adapter"
connector parameter (breaking change, 3.0).
- Added Response.getProtocol()/setProtocol(): the HTTP client connector
records the protocol version the server replied with (1.1, 2.0, 3.0).
WrapperResponse delegates it; Response.toString() shows it.
Signed-off-by: Jerome Louvel <374450+jlouvel@users.noreply.github.com>1 parent b5cabe2 commit d257cc8
26 files changed
Lines changed: 1346 additions & 3004 deletions
File tree
- org.restlet/src
- main/java
- org/restlet
- engine
- adapter
- netty
- util
- test/java/org/restlet
- engine/connector
- resource
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| |||
476 | 481 | | |
477 | 482 | | |
478 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
479 | 496 | | |
480 | 497 | | |
481 | 498 | | |
| |||
932 | 949 | | |
933 | 950 | | |
934 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
935 | 961 | | |
936 | 962 | | |
937 | 963 | | |
| |||
987 | 1013 | | |
988 | 1014 | | |
989 | 1015 | | |
990 | | - | |
| 1016 | + | |
| 1017 | + | |
991 | 1018 | | |
992 | 1019 | | |
This file was deleted.
0 commit comments