Commit efc804b
committed
Motivation:
- Allow customization of JSON printer and parser configurations for gRPC transcoding trough WireFormat configuration.
Changes:
- Added ability to configure supported wireformats on server.
- Added `JsonWireFormat` and `ProtobufWireFormat` as concrete implementations of `WireFormat`.
- Updated `GrpcMessageEncoder` and `GrpcMessageDecoder` to respect custom wire formats.
- Added `ProtobufJsonReader` and `ProtobufJsonWriter`.
- Updated transcoding logic to use specific wire formats.
Signed-off-by: Daniel Fiala <danfiala23@gmail.com>1 parent 27277d0 commit efc804b
27 files changed
Lines changed: 1050 additions & 225 deletions
File tree
- vertx-grpc-client/src/main/java/io/vertx/grpc/client/impl
- vertx-grpc-common/src
- main/java/io/vertx/grpc/common
- impl
- test/java
- io/vertx/tests/common
- vertx-grpc-it/src/test/java/io/vertx/grpc/it
- vertx-grpc-server/src
- main/java/io/vertx/grpc/server
- impl
- test/java/io/vertx/tests/server
- vertx-grpc-transcoding/src
- main/java/io/vertx/grpc/transcoding/impl
- test/java/io/vertx/tests/transcoding
- vertx-grpcio-common/src/main/java/io/vertx/grpcio/common/impl
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
Lines changed: 24 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
59 | 54 | | |
60 | 55 | | |
61 | 56 | | |
| |||
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
99 | 91 | | |
100 | 92 | | |
101 | 93 | | |
102 | | - | |
| 94 | + | |
103 | 95 | | |
104 | 96 | | |
105 | 97 | | |
| |||
115 | 107 | | |
116 | 108 | | |
117 | 109 | | |
118 | | - | |
| 110 | + | |
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
| |||
126 | 118 | | |
127 | 119 | | |
128 | 120 | | |
129 | | - | |
| 121 | + | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
| |||
146 | 138 | | |
147 | 139 | | |
148 | 140 | | |
149 | | - | |
| 141 | + | |
150 | 142 | | |
151 | 143 | | |
152 | 144 | | |
| |||
156 | 148 | | |
157 | 149 | | |
158 | 150 | | |
159 | | - | |
| 151 | + | |
160 | 152 | | |
161 | 153 | | |
162 | 154 | | |
| |||
167 | 159 | | |
168 | 160 | | |
169 | 161 | | |
170 | | - | |
| 162 | + | |
171 | 163 | | |
172 | 164 | | |
173 | 165 | | |
| |||
Lines changed: 17 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
43 | 32 | | |
44 | 33 | | |
45 | 34 | | |
| |||
70 | 59 | | |
71 | 60 | | |
72 | 61 | | |
| 62 | + | |
73 | 63 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 64 | + | |
81 | 65 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 66 | + | |
86 | 67 | | |
87 | 68 | | |
88 | 69 | | |
89 | | - | |
| 70 | + | |
90 | 71 | | |
91 | 72 | | |
92 | 73 | | |
| |||
97 | 78 | | |
98 | 79 | | |
99 | 80 | | |
100 | | - | |
| 81 | + | |
101 | 82 | | |
102 | 83 | | |
103 | 84 | | |
104 | | - | |
| 85 | + | |
105 | 86 | | |
106 | 87 | | |
107 | 88 | | |
| |||
0 commit comments