-
Notifications
You must be signed in to change notification settings - Fork 75
/
resteasy.windup.xml
837 lines (830 loc) · 56.5 KB
/
resteasy.windup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
<?xml version="1.0"?>
<ruleset xmlns="http://windup.jboss.org/schema/jboss-ruleset" id="resteasy-eap6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
<metadata>
<description>
This ruleset provides analysis of JBoss EAP 6 and RESTEasy 2 which needs to be replaced when migrating to JBoss EAP 7+ and RESTEasy 3+.
</description>
<dependencies>
<addon id="org.jboss.windup.rules,windup-rules-xml,2.3.0.Final" />
</dependencies>
<sourceTechnology id="eap" versionRange="[6,7)" />
<sourceTechnology id="resteasy" versionRange="[2,3)" />
<targetTechnology id="resteasy" versionRange="[3,)" />
<targetTechnology id="eap" versionRange="[7,8)" />
</metadata>
<!-- All links need to be replaced with GA documentation as currently there are only 7.0-beta doc available -->
<rules>
<rule id="resteasy-eap6-000001">
<when>
<javaclass references="org.jboss.resteasy.client.cache.{cache_class}" />
</when>
<perform>
<hint title="RESTEasy 3 Cache Client package change" effort="1" category-id="mandatory">
<message>Caching in the RESTEasy client framework in resteasy-jaxrs is replaced by caching in the JAX-RS 2.0 compliant resteasy-client module.
Use `org.jboss.resteasy.client.jaxrs.cache` package instead of `org.jboss.resteasy.client.cache`.
</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
<where param="cache_class">
<matches pattern="(CacheEntry|CacheFactory|CacheInterceptor|LightweightBrowserCache|BrowserCache|MapCache)" />
</where>
</rule>
<!-- Client API -->
<rule id="resteasy-eap6-000002">
<when>
<javaclass references="org.jboss.resteasy.client.ClientRequest" />
</when>
<perform>
<hint title="Deprecated class ClientRequest in RESTEasy 3" effort="1" category-id="optional">
<message><![CDATA[
Replace class `org.jboss.resteasy.client.ClientRequest` with `org.jboss.resteasy.client.jaxrs.ResteasyClient`.
The following is an example of how to send a link header with the RESTEasy client in EAP 6 with RESTEasy 2.3.x.
```java
ClientRequest request = new ClientRequest(generateURL("/linkheader/str"));
request.addLink("previous chapter", "previous", "http://example.com/TheBook/chapter2", null);
ClientResponse response = request.post();
LinkHeader header = response.getLinkHeader();
```
The following is an example of how to accomplish the same task with the RESTEasy client in RESTEasy 3.
```java
ResteasyClient client = new ResteasyClientBuilder().build();
Response response = client.target(generateURL("/linkheader/str")).request()
.header("Link", "<http://example.com/TheBook/chapter2>; rel="previous";
title="previous chapter">").post(Entity.text(new String()));
javax.ws.rs.core.Link link = response.getLink("previous");
```
]]></message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000003">
<when>
<javaclass references="org.jboss.resteasy.client.ClientResponse" />
</when>
<perform>
<hint title="Deprecated class ClientResponse in RESTEasy 3" effort="1" category-id="optional">
<message>Replace `org.jboss.resteasy.client.ClientResponse` class with `javax.ws.rs.core.Response`.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000004">
<when>
<javaclass references="org.jboss.resteasy.client.{type}" />
</when>
<perform>
<hint title="Deprecated class org.jboss.resteasy.client.{type} in RESTEasy 3" effort="1" category-id="optional">
<message>Replace this class with `org.jboss.resteasy.client.jaxrs.{type}`.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
<where param="type">
<matches pattern="(ProxyBuilder|ProxyConfig|ProxyFactory)" />
</where>
</rule>
<rule id="resteasy-eap6-000005">
<when>
<javaclass references="org.jboss.resteasy.client.EntityTypeFactory" />
</when>
<perform>
<hint title="Deprecated class EntityTypeFactory in RESTEasy 3" effort="1" category-id="optional">
<message><![CDATA[
There is no direct replacement for `org.jboss.resteasy.client.EntityTypeFactory` class.
`org.jboss.resteasy.client.ClientResponse<T>` is a generic type in the RESTEasy client framework,
but `org.jboss.resteasy.client.jaxrs.internal.ClientResponse` in the resteasy-client module is not, so
`EntityTypeFactory` is no longer useful.
]]></message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000006">
<when>
<javaclass references="org.jboss.resteasy.client.ClientExecutor" />
</when>
<perform>
<hint title="Deprecated interface ClientExecutor in RESTEasy 3" effort="1" category-id="optional">
<message>Replace the `org.jboss.resteasy.client.ClientExecutor` usage with `org.jboss.resteasy.client.jaxrs.ClientHttpEngine` class.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000007">
<when>
<javaclass references="org.jboss.resteasy.client.ClientRequestFactory" />
</when>
<perform>
<hint title="Deprecated class ClientRequestFactory in RESTEasy 3" effort="1" category-id="optional">
<message>Replace the `org.jboss.resteasy.client.ClientRequestFactory` usage with `org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder` class.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000008">
<when>
<javaclass references="org.jboss.resteasy.client.ClientResponseFailure" />
</when>
<perform>
<hint title="Deprecated exception ClientResponseFailure in RESTEasy 3" effort="1" category-id="optional">
<message>Replace the `org.jboss.resteasy.client.ClientResponseFailure` with `javax.ws.rs.client.ResponseProcessingException`
or with `javax.ws.rs.client.ProcessingException` or with `javax.ws.rs.client.WebApplicationException` class.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000009">
<when>
<javaclass references="org.jboss.resteasy.spi.StringConverter" />
</when>
<perform>
<hint title="RESTEasy 3 SPI Application Change for StringConverter" effort="1" category-id="mandatory">
<message>Replace `org.jboss.resteasy.spi.StringConverter` by `javax.ws.rs.ext.ParamConverterProvider`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS API" href="https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html?javax/ws/rs/ext/ParamConverterProvider.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000010">
<when>
<javaclass references="org.jboss.resteasy.spi.InjectorFactory" />
</when>
<perform>
<hint title="RESTEasy 3 SPI Application Changes for InjectorFactory" effort="1" category-id="mandatory">
<message>There were multiple changes on adding/removing methods on `org.jboss.resteasy.spi.InjectorFactory`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes#injectorfactory_and_registry" />
<link title="RESTEasy SPI InjectorFactory Changes"
href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/index.html?org/jboss/resteasy/spi/InjectorFactory.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000011">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.MessageBodyWriterInterceptor" />
</when>
<perform>
<hint title="Deprecated interface MessageBodyWriterInterceptor in RESTEasy 3" effort="1" category-id="optional">
<message>The interface `org.jboss.resteasy.spi.interception.MessageBodyWriterInterceptor` is deprecated and you should use `javax.ws.rs.ext.WriterInterceptor` from JAX-RS API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/javax/ws/rs/ext/WriterInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000012">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.MessageBodyReaderInterceptor" />
</when>
<perform>
<hint title="Deprecated interface MessageBodyReaderInterceptor in RESTEasy 3" effort="1" category-id="optional">
<message>The interface `org.jboss.resteasy.spi.interception.MessageBodyReaderInterceptor` is deprecated and you should use `javax.ws.rs.ext.ReaderInterceptor` from JAX-RS API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000013">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.MessageBodyWriterContext" />
</when>
<perform>
<hint title="Deprecated interface MessageBodyWriterContext in RESTEasy 3" effort="1" category-id="optional">
<message>The interface `org.jboss.resteasy.spi.interception.MessageBodyWriterContext` is replaced by the `javax.ws.rs.ext.WriterInterceptorContext` interface by JAX-RS 2.0 compliant interceptor facility.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000014">
<when>
<javaclass references="org.jboss.resteasy.core.interception.InterceptorRegistry" />
</when>
<perform>
<hint title="Deprecated class InterceptorRegistry in RESTEasy 3" effort="1" category-id="optional">
<message>`org.jboss.resteasy.core.interception.InterceptorRegistry` is deprecated in favor of the JAX-RS 2.0 Interceptor and filter API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link href="http://www.oracle.com/technetwork/articles/java/jaxrs20-1929352.html" title="Java EE 7 and JAX-RS 2.0" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000015">
<when>
<javaclass references="org.jboss.resteasy.core.interception.InterceptorRegistryListener" />
</when>
<perform>
<hint title="Deprecated interface InterceptorRegistryListener in RESTEasy 3" effort="1" category-id="optional">
<message>`org.jboss.resteasy.core.interception.InterceptorRegistryListener` is deprecated in favor of the JAX-RS 2.0 Interceptor and filter API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link href="http://www.oracle.com/technetwork/articles/java/jaxrs20-1929352.html" title="Java EE 7 and JAX-RS 2.0" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000017">
<when>
<javaclass references="org.jboss.resteasy.client.core.executors.ApacheHttpClientExecutor" />
</when>
<perform>
<hint title="Removed class ApacheHttpClientExecutor from in RESTEasy 3" effort="1" category-id="mandatory">
<message>No direct replacement.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy javadoc for ApacheHttpClientExecutor" href="https://docs.jboss.org/resteasy/docs/2.3.1.GA/javadocs/org/jboss/resteasy/client/core/executors/ApacheHttpClientExecutor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000018">
<when>
<javaclass references="org.jboss.resteasy.plugins.cache.server.SimpleServerCache" />
</when>
<perform>
<hint title="Deprecated class SimpleServerCache in RESTEasy 3" effort="1" category-id="optional">
<message>Use `org.jboss.resteasy.plugins.cache.server.InfinispanCache` instead of `org.jboss.resteasy.plugins.cache.server.SimpleServerCache`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RestEasy javadoc for SimpleServerCache" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/index.html?org/jboss/resteasy/plugins/cache/server/SimpleServerCache.html" />
<link title="RestEasy javadoc for SimpleServerCache" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/index.html?org/jboss/resteasy/plugins/cache/server/InfinispanCache.html" />
<link title="Local Server-Side Response Cache" href="http://docs.jboss.org/resteasy/docs/3.0.9.Final/userguide/html/Cache_NoCache_CacheControl.html#server_cache" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000019">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.AcceptedByMethod" />
</when>
<perform>
<hint title="Deprecated interface AcceptedByMethod in RESTEasy 3" effort="1" category-id="optional">
<message>Use `javax.ws.rs.container.DynamicFeature` for Dynamic binding instead of implementing `org.jboss.resteasy.spi.interception.AcceptedByMethod` interface.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/container/DynamicFeature.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000020">
<when>
<javaclass references="org.jboss.resteasy.annotations.cache.ServerCached" />
</when>
<perform>
<hint title="Removed annotation ServerCached in RESTEasy 3" effort="1" category-id="mandatory">
<message>Remove annotation `@org.jboss.resteasy.annotations.cache.ServerCached' as it was removed in RESTEasy 3.x.</message>
<link title="RESTEasy removes additional classes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#additional_classes_removed_from_resteasy_3" />
<link title="JAX-RS API ServerCached annotation API" href="https://docs.jboss.org/resteasy/docs/2.3.5.Final/javadocs/index.html?org/jboss/resteasy/annotations/cache/ServerCached.html" />
<link href="http://docs.jboss.org/resteasy/docs/3.0.16.Final/userguide/html_single/index.html#server_cache" title="Local Server-side Response Cache" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000021">
<when>
<javaclass references="org.jboss.resteasy.spi.Link" />
</when>
<perform>
<hint title="Deprecated class Link in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.core.Link` in JAX-RS API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API Link" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/core/Link.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000022">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.ClientExecutionContext" />
</when>
<perform>
<hint title="Deprecated interface ClientExecutionContext in RESTEasy 3" effort="1" category-id="optional">
<message>`org.jboss.resteasy.spi.interception.ClientExecutionContext` is deprecated in favor of the JAX-RS 2.0 Interceptor and filter API.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link href="http://www.oracle.com/technetwork/articles/java/jaxrs20-1929352.html" title="Java EE 7 and JAX-RS 2.0" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000023">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.ClientExecutionInterceptor" />
</when>
<perform>
<hint title="Deprecated interface ClientExecutionInterceptor in RESTEasy 3" effort="1" category-id="optional">
<message>Use `javax.ws.rs.client.Invocation` instead of `org.jboss.resteasy.spi.interception.ClientExecutionInterceptor`.
The RESTEasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000024">
<when>
<javaclass references="org.jboss.resteasy.spi.ResteasyProviderFactory.add{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="ResteasyProviderFactory#add* methods were removed" effort="1" category-id="mandatory">
<message>Most of the `org.jboss.resteasy.spi.ResteasyProviderFactory#add*` methods have been removed or made protected in RESTEasy 3.0.
For example, the `addBuiltInMessageBodyReader()` and `addBuiltInMessageBodyWriter()` methods have been removed and the `addMessageBodyReader()` and `addMessageBodyWriter()` methods have been made protected.
You should now use the `registerProvider()` and `registerProviderInstance()` methods.</message>
<link title="RESTEasy removed/protected methods on ResteasyProviderFactory class"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#resteasyproviderfactory_add_methods" />
<link title="JAX-RS API" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/spi/ResteasyProviderFactory.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000025">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.MessageBodyReaderContext" />
</when>
<perform>
<hint title="Deprecated interface MessageBodyReaderContext in RESTEasy 3" effort="1" category-id="optional">
<message>Use `javax.ws.rs.ext.ReaderInterceptorContext` instead of `org.jboss.resteasy.spi.interception.MessageBodyReaderContext`.
The RESTEasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000029">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.PostProcessInterceptor" />
</when>
<perform>
<hint title="Deprecated interface PostProcessInterceptor in RESTEasy 3" effort="1" category-id="optional">
<message>Use `javax.ws.rs.container.ContainerResponseFilter` instead of `org.jboss.resteasy.spi.interception.PostProcessInterceptor`.
The RESTEasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant filters and interceptor facility in release 3.0.x.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html?javax/ws/rs/container/ContainerResponseFilter.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000030">
<when>
<javaclass references="org.jboss.resteasy.spi.interception.PreProcessInterceptor" />
</when>
<perform>
<hint title="Deprecated interface PreProcessInterceptor in RESTEasy 3" effort="1" category-id="optional">
<message>Use `javax.ws.rs.container.ContainerRequestFilter` instead of `org.jboss.resteasy.spi.interception.PreProcessInterceptor`.
The RESTEasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant filters and interceptor facility in release 3.0.x.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html?javax/ws/rs/container/ContainerRequestFilter.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000032">
<when>
<javaclass references="org.jboss.resteasy.spi.Registry" />
</when>
<perform>
<hint title="RESTEasy 3 SPI Registry changed" effort="1" category-id="mandatory">
<message>There were multiple changes on adding/removing methods on `org.jboss.resteasy.spi.Registry`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes#injectorfactory_and_registry" />
<link title="RESTEasy SPI Registry Changes"
href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/index.html?org/jboss/resteasy/spi/Registry.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<!-- Exceptions -->
<rule id="resteasy-eap6-000101">
<when>
<javaclass references="org.jboss.resteasy.spi.ForbiddenException" />
</when>
<perform>
<hint title="Deprecated exception ForbiddenException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.ForbiddenException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ForbiddenException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000103">
<when>
<javaclass references="org.jboss.resteasy.spi.MethodNotAllowedException" />
</when>
<perform>
<hint title="Deprecated exception MethodNotAllowedException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.NotAllowedException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/NotAllowedException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000104">
<when>
<javaclass references="org.jboss.resteasy.spi.NotAcceptableException" />
</when>
<perform>
<hint title="Deprecated exception NotAcceptableException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.NotAcceptableException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/NotAcceptableException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000105">
<when>
<javaclass references="org.jboss.resteasy.spi.NotFoundException" />
</when>
<perform>
<hint title="Deprecated exception NotFoundException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.NotFoundException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/NotFoundException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000106">
<when>
<javaclass references="org.jboss.resteasy.spi.UnauthorizedException" />
</when>
<perform>
<hint title="Deprecated exception UnauthorizedException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.NotAuthorizedException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/NotAuthorizedException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000107">
<when>
<javaclass references="org.jboss.resteasy.spi.UnsupportedMediaTypeException" />
</when>
<perform>
<hint title="Deprecated exception UnsupportedMediaTypeException in RESTEasy 3" effort="1" category-id="optional">
<message>Replaced by `javax.ws.rs.NotSupportedException` in jaxrs-api module.</message>
<link title="RESTEasy Client Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/chapter-4-application-changes" />
<link title="JAX-RS client Exception API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/NotSupportedException.html" />
<tag>resteasy</tag>
<tag>jax-rs</tag>
</hint>
</perform>
</rule>
<!-- Deprecated Methods -->
<rule id="resteasy-eap6-000118">
<when>
<javaclass references="org.jboss.resteasy.plugins.delegates.ServerCookie.checkName{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method ServerCookie#checkName in RESTEasy 3" effort="1" category-id="optional">
<message>RESTEasy 3 deprecates method `org.jboss.resteasy.plugins.delegates.ServerCookie#checkName` without a replacement.
It was deprecated in the original `org.apache.tomcat.util.http.ServerCookie` class which was a template for this method.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000119">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper.createValidator{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method JAXBContextWrapper#createValidator in RESTEasy 3" effort="1" category-id="optional">
<message>Empty</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000120">
<when>
<javaclass references="org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeRedirectUrl{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method ResteasyHttpServletResponseWrapper#encodeRedirectUrl" effort="1" category-id="optional">
<message>Replace method calls of `encodeRedirectUrl` with `encodeRedirectURL(String url)`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000121">
<when>
<javaclass references="org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeUrl{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated ResteasyHttpServletResponseWrapper#encodeUrl method" effort="1" category-id="optional">
<message>Replace `ResteasyHttpServletResponseWrapper#encodeUrl` with `ResteasyHttpServletResponseWrapper#encodeURL(String url)`.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000122">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInputImpl.getFormData{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method MultipartFormDataInputImpl#getFormData in RESTEasy 3" effort="1" category-id="optional">
<message>`MultipartFormDataInputImpl#getFormData` method will be removed in the future. Use `MultipartFormDataInput#getFormDataMap()` instead.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy MultipartFormDataInputImpl#getFormData API" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/plugins/providers/multipart/MultipartFormDataInputImpl.html#getFormData()" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000123">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput.getFormData{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method MultipartFormDataInput#getFormData in RESTEasy 3" effort="1" category-id="optional">
<message>`MultipartFormDataInput#getFormData` method will be removed in the future. Use `MultipartFormDataInput#getFormDataMap()` instead.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy MultipartFormDataInput#getFormData API" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/plugins/providers/multipart/MultipartFormDataInput.html#getFormData()" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000125">
<when>
<javaclass references="org.jboss.resteasy.core.ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromUrl{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromURL in RESTEasy 3" effort="1" category-id="optional">
<message>As of Version 2.1 of the Java Servlet API, use `ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromURL()` instead.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RestEasy javadoc API" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/core/ResteasyHttpServletRequestWrapper.html#isRequestedSessionIdFromUrl()" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000126">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.isValidating{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method SecureUnmarshaller#isValidating in RESTEasy 3" effort="1" category-id="optional">
<message>Method `org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller#isValidating` is deprecated without a replacement.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy javadoc for SecureUnmarshaller.html#isValidating()" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/plugins/providers/jaxb/SecureUnmarshaller.html#isValidating()" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000127">
<when>
<javaclass references="org.jboss.resteasy.plugins.delegates.ServerCookie.maybeQuote{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method ServerCookie#maybeQuote in RESTEasy 3" effort="1" category-id="optional">
<message>RESTEasy 3 deprecates method `org.jboss.resteasy.plugins.delegates.ServerCookie#maybeQuote` without a replacement.
It was deprecated in the original `org.apache.tomcat.util.http.ServerCookie` class which was a template for this method.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/plugins/delegates/ServerCookie.html#maybeQuote%28int,%20java.lang.StringBuffer,%20java.lang.String%29" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000128">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setAdapter{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method SecureUnmarshaller#setAdapter in RESTEasy 3" effort="1" category-id="optional">
<message>Method `org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller#setAdapter` is deprecated in RESTEasy 3.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="JAX-RS API" href="https://docs.oracle.com/javaee/7/api/index.html?javax/ws/rs/ext/ReaderInterceptor.html" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000129">
<when>
<javaclass references="org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.setStatus{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method ResteasyHttpServletResponseWrapper#setStatus in RESTEasy 3" effort="1" category-id="optional">
<message>As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use `setStatus(int)` instead,
to send an error with a description use `sendError(int, String)`. Sets the status code and message for this response.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy javadoc ResteasyHttpServletResponseWrapper.html#setStatus" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/core/ResteasyHttpServletResponseWrapper.html#setStatus(int,%20java.lang.String)" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000130">
<when>
<javaclass references="org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setValidating{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method SecureUnmarshaller#setValidating in RESTEasy 3" effort="1" category-id="optional">
<message>RESTEasy 3 deprecates method `org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller#setValidating` without a replacement.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy javadoc for SecureUnmarshaller#setValidating" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/plugins/providers/jaxb/SecureUnmarshaller.html#setValidating(boolean)" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000131">
<when>
<javaclass references="org.jboss.resteasy.auth.oauth.OAuthValidator.validateMessage{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Deprecated method OAuthValidator#validateMessage in RESTEasy 3" effort="1" category-id="optional">
<message>RESTEasy 3 deprecates `org.jboss.resteasy.auth.oauth.OAuthValidator#validateMessage` method without a replacement.</message>
<link title="RESTEasy SPI Application Changes"
href="https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/migration-guide/#migrate_resteasy_deprecated_classes" />
<link title="RESTEasy javadoc for OAuthValidator#validateMessage" href="https://docs.jboss.org/resteasy/docs/3.0.16.Final/javadocs/org/jboss/resteasy/auth/oauth/OAuthValidator.html#validateMessage(net.oauth.OAuthMessage,%20net.oauth.OAuthAccessor)" />
<tag>resteasy</tag>
</hint>
</perform>
</rule>
<rule id="resteasy-eap6-000140">
<when>
<javaclass references="javax.ws.rs.Produces">
<location>ANNOTATION</location>
<annotation-literal name="value" pattern="{*}yaml"/>
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<file-exists filename="javax.ws.rs.ext.Providers"/>
</not>
</when>
<perform>
<hint title="Resteasy Yaml Provider is deprecated and disabled by default" effort="3" category-id="mandatory">
<message>The resteasy-yaml-provider module is not recommended to use due security issue in SnakeYAML library used by RESTEasy for unmarshaling.
If you would like to use YAML Resteasy Provider even it is not recommended,
you need to add the SnakeYAML library (Maven dependency) into your application and enable it by creating file `META-INF/services/javax.ws.rs.ext.Providers` with line `org.jboss.resteasy.plugins.providers.YamlProvider` in that file and your application.
</message>
<link title="Yaml unmarshalling vulnerable to RCE" href="https://bugzilla.redhat.com/show_bug.cgi?id=1400644"/>
<link title="RESTEasy YAML Provider Setting Changes"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1.beta/html-single/migration_guide/#migrate_resteasy_yaml_provider_setting_changes"/>
<link title="RESTEasy YAML Provider"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/developing_web_services_applications/#jaxrs_yaml_provider"/>
<tag>resteasy</tag>
<tag>yaml</tag>
</hint>
</perform>
</iteration>
</perform>
</rule>
<rule id="resteasy-eap6-000141">
<when>
<or>
<javaclass references="javax.ws.rs.Produces">
<location>ANNOTATION</location>
<annotation-literal name="value" pattern="application/x-java-serialized-object"/>
</javaclass>
<javaclass references="javax.ws.rs.Consumes">
<location>ANNOTATION</location>
<annotation-literal name="value" pattern="application/x-java-serialized-object"/>
</javaclass>
</or>
</when>
<perform>
<iteration>
<when>
<not>
<file-exists filename="javax.ws.rs.ext.Providers"/>
</not>
</when>
<perform>
<hint title="Resteasy SerializableProvider is disabled by default" effort="1" category-id="mandatory">
<message>Deserializing Java objects from untrusted sources is not safe. For this reason,
the `org.jboss.resteasy.plugins.providers.SerializableProvider` class is disabled by default, and it is not recommended to use this provider.
If you need to enable it even against the recommendation, create or update file `META-INF/services/javax.ws.rs.ext.Providers` with adding line with `org.jboss.resteasy.plugins.providers.SerializableProvider` string.
</message>
<link title="RESTEasy SerializableProvider"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1.beta/html-single/migration_guide/#migrate_resteasy_serializableprovider"/>
<link href="http://docs.jboss.org/resteasy/docs/3.1.2.Final/javadocs/org/jboss/resteasy/plugins/providers/SerializableProvider.html" title="SerializableProvider Java API documentation"/>
<tag>resteasy</tag>
</hint>
</perform>
</iteration>
</perform>
</rule>
<rule id="resteasy-eap6-000142">
<when>
<or>
<javaclass references="javax.ws.rs.Produces">
<location>ANNOTATION</location>
<annotation-literal name="value" pattern="application/xml{*}"/>
</javaclass>
<javaclass references="javax.ws.rs.Produces">
<location>ANNOTATION</location>
<annotation-literal name="value" pattern="text/{*}"/>
</javaclass>
</or>
</when>
<perform>
<hint title="RESTEasy Text default charset response changed" effort="1" category-id="optional">
<message>RESTEasy fixes the issue when it doesn't set/add correctly character set meta data specified in JAX-RS specification. Therefore UTF-8 as the character set for text media types is set by default.
This behavior results in adding `charset=UTF-8` string to the returned content-type header when the resource method returns a `text/*` or `application/xml*` media type without an explicit charset.
The behavior is controlled by `resteasy.add.charset` parameter which is set to `true` by default and you can customize the `resteasy.add.charset` parameter to `false` in _web.xml_'s `context-param` element
in case of wanting to keep previous behavior.
</message>
<link title="RESTEasy Default Charset UTF-8 in Content-Type Header"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1.beta/html/migration_guide/application_migration_changes#migrate_resteasy_default_charset_utf8_in_content_type_header"/>
<link href="http://docs.jboss.org/resteasy/docs/3.1.4.Final/userguide/html_single/index.html#Text_media_types" title="RESTEasy Text media types and character sets"/>
<tag>resteasy</tag>
<tag>charset</tag>
</hint>
</perform>
</rule>
</rules>
</ruleset>