Commit 97d01be
[Refactor] MediaTypeParser to MediaTypeParserRegistry (opensearch-project#8636)
Refactors the static MediaTypeParser utility to a dynamic registry to
support registration of new MediaType definitions. This is a next step
to decoupling the x-content library from core classes in the server
module to support modularity and cloud or serverless implementations.
Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: Shivansh Arora <[email protected]>1 parent 9bdcc41 commit 97d01be
File tree
87 files changed
+712
-753
lines changed- client
- client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/bulk
- rest-high-level/src
- main/java/org/opensearch/client
- indices
- test/java/org/opensearch/client
- indices
- libs
- core/src/main/java/org/opensearch/core
- common/io/stream
- xcontent
- x-content/src
- main/java/org/opensearch/common/xcontent
- test/java/org/opensearch/common/xcontent
- modules
- lang-painless/src/main/java/org/opensearch/painless/action
- reindex/src
- main/java/org/opensearch/index/reindex
- remote
- test/java/org/opensearch/index/reindex
- server/src
- internalClusterTest/java/org/opensearch/search/geo
- main/java/org/opensearch
- action
- admin/cluster/storedscripts
- bulk
- index
- ingest
- search
- termvectors
- update
- common/xcontent
- extensions/rest
- index
- mapper
- query
- reindex
- shard
- termvectors
- ingest
- rest
- action
- admin
- cluster
- indices
- cat
- document
- ingest
- search
- script
- search
- fetch
- lookup
- pipeline
- transport
- test/java/org/opensearch
- action
- admin/cluster
- reroute
- storedscripts
- ingest
- common/xcontent
- index/mapper
- ingest
- rest
- script
- test/framework/src/main/java/org/opensearch/test
- rest
- yaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
87 files changed
+712
-753
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
Lines changed: 24 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
| 414 | + | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
820 | | - | |
| 819 | + | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
827 | 826 | | |
828 | 827 | | |
829 | 828 | | |
| |||
868 | 867 | | |
869 | 868 | | |
870 | 869 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | 870 | | |
886 | 871 | | |
887 | 872 | | |
| |||
1265 | 1250 | | |
1266 | 1251 | | |
1267 | 1252 | | |
1268 | | - | |
1269 | | - | |
| 1253 | + | |
| 1254 | + | |
1270 | 1255 | | |
1271 | 1256 | | |
1272 | 1257 | | |
1273 | 1258 | | |
1274 | 1259 | | |
1275 | 1260 | | |
1276 | 1261 | | |
1277 | | - | |
| 1262 | + | |
1278 | 1263 | | |
1279 | 1264 | | |
1280 | | - | |
| 1265 | + | |
1281 | 1266 | | |
1282 | 1267 | | |
1283 | 1268 | | |
1284 | 1269 | | |
1285 | | - | |
| 1270 | + | |
1286 | 1271 | | |
1287 | 1272 | | |
1288 | 1273 | | |
1289 | | - | |
| 1274 | + | |
1290 | 1275 | | |
1291 | 1276 | | |
1292 | 1277 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
2230 | | - | |
2231 | | - | |
| 2230 | + | |
| 2231 | + | |
2232 | 2232 | | |
2233 | 2233 | | |
2234 | | - | |
| 2234 | + | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
| |||
Lines changed: 7 additions & 97 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 126 | | |
138 | 127 | | |
139 | 128 | | |
| |||
162 | 151 | | |
163 | 152 | | |
164 | 153 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 154 | + | |
| 155 | + | |
182 | 156 | | |
183 | 157 | | |
184 | 158 | | |
| |||
213 | 187 | | |
214 | 188 | | |
215 | 189 | | |
216 | | - | |
| 190 | + | |
217 | 191 | | |
218 | 192 | | |
219 | 193 | | |
220 | 194 | | |
221 | 195 | | |
222 | 196 | | |
223 | 197 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 198 | | |
243 | 199 | | |
244 | 200 | | |
| |||
250 | 206 | | |
251 | 207 | | |
252 | 208 | | |
253 | | - | |
| 209 | + | |
254 | 210 | | |
255 | 211 | | |
256 | 212 | | |
| |||
278 | 234 | | |
279 | 235 | | |
280 | 236 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 237 | | |
292 | 238 | | |
293 | 239 | | |
294 | 240 | | |
295 | 241 | | |
296 | 242 | | |
297 | 243 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 244 | | |
309 | 245 | | |
310 | 246 | | |
| |||
345 | 281 | | |
346 | 282 | | |
347 | 283 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 284 | | |
361 | 285 | | |
362 | 286 | | |
| |||
375 | 299 | | |
376 | 300 | | |
377 | 301 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 302 | | |
393 | 303 | | |
394 | 304 | | |
| |||
458 | 368 | | |
459 | 369 | | |
460 | 370 | | |
461 | | - | |
| 371 | + | |
462 | 372 | | |
463 | 373 | | |
464 | 374 | | |
| |||
0 commit comments