25
25
import jakarta .ws .rs .ext .MessageBodyReader ;
26
26
27
27
@ Path ("" )
28
- public class JakartaRs1 { // $RootResourceClass
29
- public JakartaRs1 () { // $InjectableConstructor
28
+ public class JakartaRs1 { // $ RootResourceClass
29
+ public JakartaRs1 () { // $ InjectableConstructor
30
30
}
31
31
32
32
@ GET
33
- int Get () { // $ResourceMethod $ ResourceMethodOnResourceClass
34
- return 0 ; // $XssSink
33
+ int Get () { // $ ResourceMethod ResourceMethodOnResourceClass
34
+ return 0 ; // $ XssSink
35
35
}
36
36
37
37
@ POST
38
- void Post () { // $ResourceMethod $ ResourceMethodOnResourceClass
38
+ void Post () { // $ ResourceMethod ResourceMethodOnResourceClass
39
39
}
40
40
41
- @ Produces ("text/plain" ) // $ProducesAnnotation=text/plain
41
+ @ Produces ("text/plain" ) // $ ProducesAnnotation=text/plain
42
42
@ DELETE
43
- double Delete () { // $ResourceMethod=text/plain $ ResourceMethodOnResourceClass
44
- return 0.0 ; // $XssSink
43
+ double Delete () { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
44
+ return 0.0 ; // $ XssSink
45
45
}
46
46
47
- @ Produces (MediaType .TEXT_HTML ) // $ProducesAnnotation=text/html
47
+ @ Produces (MediaType .TEXT_HTML ) // $ ProducesAnnotation=text/html
48
48
@ PUT
49
- void Put () { // $ResourceMethod=text/html $ ResourceMethodOnResourceClass
49
+ void Put () { // $ ResourceMethod=text/html ResourceMethodOnResourceClass
50
50
}
51
51
52
52
@ OPTIONS
53
- void Options () { // $ResourceMethod $ ResourceMethodOnResourceClass
53
+ void Options () { // $ ResourceMethod ResourceMethodOnResourceClass
54
54
}
55
55
56
56
@ HEAD
57
- void Head () { // $ResourceMethod $ ResourceMethodOnResourceClass
57
+ void Head () { // $ ResourceMethod ResourceMethodOnResourceClass
58
58
}
59
59
60
60
@ Path ("" )
61
- NonRootResourceClassJakarta subResourceLocator () { // $SubResourceLocator
61
+ NonRootResourceClassJakarta subResourceLocator () { // $ SubResourceLocator
62
62
return null ;
63
63
}
64
64
65
- public class NonRootResourceClassJakarta { // $NonRootResourceClass
65
+ public class NonRootResourceClassJakarta { // $ NonRootResourceClass
66
66
@ GET
67
- int Get () { // $ResourceMethod $ ResourceMethodOnResourceClass
68
- return 0 ; // $XssSink
67
+ int Get () { // $ ResourceMethod ResourceMethodOnResourceClass
68
+ return 0 ; // $ XssSink
69
69
}
70
70
71
- @ Produces ("text/html" ) // $ProducesAnnotation=text/html
71
+ @ Produces ("text/html" ) // $ ProducesAnnotation=text/html
72
72
@ POST
73
- boolean Post () { // $ResourceMethod=text/html $ ResourceMethodOnResourceClass
73
+ boolean Post () { // $ ResourceMethod=text/html ResourceMethodOnResourceClass
74
74
return false ;
75
75
}
76
76
77
- @ Produces (MediaType .TEXT_PLAIN ) // $ProducesAnnotation=text/plain
77
+ @ Produces (MediaType .TEXT_PLAIN ) // $ ProducesAnnotation=text/plain
78
78
@ DELETE
79
- double Delete () { // $ResourceMethod=text/plain $ ResourceMethodOnResourceClass
80
- return 0.0 ; // $XssSink
79
+ double Delete () { // $ ResourceMethod=text/plain ResourceMethodOnResourceClass
80
+ return 0.0 ; // $ XssSink
81
81
}
82
82
83
83
@ Path ("" )
84
- AnotherNonRootResourceClassJakarta subResourceLocator1 () { // $SubResourceLocator
84
+ AnotherNonRootResourceClassJakarta subResourceLocator1 () { // $ SubResourceLocator
85
85
return null ;
86
86
}
87
87
88
88
@ GET
89
89
@ Path ("" )
90
- NotAResourceClass1Jakarta NotASubResourceLocator1 () { // $ResourceMethod $ ResourceMethodOnResourceClass
91
- return null ; // $XssSink
90
+ NotAResourceClass1Jakarta NotASubResourceLocator1 () { // $ ResourceMethod ResourceMethodOnResourceClass
91
+ return null ; // $ XssSink
92
92
}
93
93
94
94
@ GET
95
- NotAResourceClass2Jakarta NotASubResourceLocator2 () { // $ResourceMethod $ ResourceMethodOnResourceClass
96
- return null ; // $XssSink
95
+ NotAResourceClass2Jakarta NotASubResourceLocator2 () { // $ ResourceMethod ResourceMethodOnResourceClass
96
+ return null ; // $ XssSink
97
97
}
98
98
99
99
NotAResourceClass2Jakarta NotASubResourceLocator3 () {
@@ -102,50 +102,50 @@ NotAResourceClass2Jakarta NotASubResourceLocator3() {
102
102
}
103
103
}
104
104
105
- class AnotherNonRootResourceClassJakarta { // $NonRootResourceClass
105
+ class AnotherNonRootResourceClassJakarta { // $ NonRootResourceClass
106
106
public AnotherNonRootResourceClassJakarta () {
107
107
}
108
108
109
109
public AnotherNonRootResourceClassJakarta (
110
- @ BeanParam int beanParam , // $InjectionAnnotation
111
- @ CookieParam ("" ) int cookieParam , // $InjectionAnnotation
112
- @ FormParam ("" ) int formParam , // $InjectionAnnotation
113
- @ HeaderParam ("" ) int headerParam , // $InjectionAnnotation
114
- @ MatrixParam ("" ) int matrixParam , // $InjectionAnnotation
115
- @ PathParam ("" ) int pathParam , // $InjectionAnnotation
116
- @ QueryParam ("" ) int queryParam , // $InjectionAnnotation
117
- @ Context int context ) { // $InjectionAnnotation
110
+ @ BeanParam int beanParam , // $ InjectionAnnotation
111
+ @ CookieParam ("" ) int cookieParam , // $ InjectionAnnotation
112
+ @ FormParam ("" ) int formParam , // $ InjectionAnnotation
113
+ @ HeaderParam ("" ) int headerParam , // $ InjectionAnnotation
114
+ @ MatrixParam ("" ) int matrixParam , // $ InjectionAnnotation
115
+ @ PathParam ("" ) int pathParam , // $ InjectionAnnotation
116
+ @ QueryParam ("" ) int queryParam , // $ InjectionAnnotation
117
+ @ Context int context ) { // $ InjectionAnnotation
118
118
}
119
119
120
120
@ Path ("" )
121
- public void resourceMethodWithBeanParamParameter (@ BeanParam FooJakarta FooJakarta ) { // $SubResourceLocator $ InjectionAnnotation
121
+ public void resourceMethodWithBeanParamParameter (@ BeanParam FooJakarta FooJakarta ) { // $ SubResourceLocator InjectionAnnotation
122
122
}
123
123
}
124
124
125
125
class FooJakarta {
126
- FooJakarta () { // $BeanParamConstructor
126
+ FooJakarta () { // $ BeanParamConstructor
127
127
}
128
128
129
- public FooJakarta ( // $BeanParamConstructor
130
- @ BeanParam int beanParam , // $InjectionAnnotation
131
- @ CookieParam ("" ) int cookieParam , // $InjectionAnnotation
132
- @ FormParam ("" ) int formParam , // $InjectionAnnotation
133
- @ HeaderParam ("" ) int headerParam , // $InjectionAnnotation
134
- @ MatrixParam ("" ) int matrixParam , // $InjectionAnnotation
135
- @ PathParam ("" ) int pathParam , // $InjectionAnnotation
136
- @ QueryParam ("" ) int queryParam , // $InjectionAnnotation
137
- @ Context int context ) { // $InjectionAnnotation
129
+ public FooJakarta ( // $ BeanParamConstructor
130
+ @ BeanParam int beanParam , // $ InjectionAnnotation
131
+ @ CookieParam ("" ) int cookieParam , // $ InjectionAnnotation
132
+ @ FormParam ("" ) int formParam , // $ InjectionAnnotation
133
+ @ HeaderParam ("" ) int headerParam , // $ InjectionAnnotation
134
+ @ MatrixParam ("" ) int matrixParam , // $ InjectionAnnotation
135
+ @ PathParam ("" ) int pathParam , // $ InjectionAnnotation
136
+ @ QueryParam ("" ) int queryParam , // $ InjectionAnnotation
137
+ @ Context int context ) { // $ InjectionAnnotation
138
138
}
139
139
140
140
public FooJakarta (
141
- @ BeanParam int beanParam , // $InjectionAnnotation
142
- @ CookieParam ("" ) int cookieParam , // $InjectionAnnotation
143
- @ FormParam ("" ) int formParam , // $InjectionAnnotation
144
- @ HeaderParam ("" ) int headerParam , // $InjectionAnnotation
145
- @ MatrixParam ("" ) int matrixParam , // $InjectionAnnotation
146
- @ PathParam ("" ) int pathParam , // $InjectionAnnotation
147
- @ QueryParam ("" ) int queryParam , // $InjectionAnnotation
148
- @ Context int context , // $InjectionAnnotation
141
+ @ BeanParam int beanParam , // $ InjectionAnnotation
142
+ @ CookieParam ("" ) int cookieParam , // $ InjectionAnnotation
143
+ @ FormParam ("" ) int formParam , // $ InjectionAnnotation
144
+ @ HeaderParam ("" ) int headerParam , // $ InjectionAnnotation
145
+ @ MatrixParam ("" ) int matrixParam , // $ InjectionAnnotation
146
+ @ PathParam ("" ) int pathParam , // $ InjectionAnnotation
147
+ @ QueryParam ("" ) int queryParam , // $ InjectionAnnotation
148
+ @ Context int context , // $ InjectionAnnotation
149
149
int paramWithoutAnnotation ) {
150
150
}
151
151
}
@@ -158,58 +158,58 @@ class NotAResourceClass2Jakarta {
158
158
159
159
class ExtendsJakartaRs1 extends JakartaRs1 {
160
160
@ Override
161
- int Get () { // $ResourceMethod
161
+ int Get () { // $ ResourceMethod
162
162
return 1 ;
163
163
}
164
164
165
165
@ Override
166
- @ QueryParam ("" ) // $InjectionAnnotation
166
+ @ QueryParam ("" ) // $ InjectionAnnotation
167
167
void Post () {
168
168
}
169
169
170
170
@ Override
171
- double Delete () { // $ResourceMethod=text/plain
171
+ double Delete () { // $ ResourceMethod=text/plain
172
172
return 1.0 ;
173
173
}
174
174
175
175
@ Override
176
- void Put () { // $ResourceMethod=text/html
176
+ void Put () { // $ ResourceMethod=text/html
177
177
}
178
178
179
- @ Produces ("application/json" ) // $ProducesAnnotation=application/json
179
+ @ Produces ("application/json" ) // $ ProducesAnnotation=application/json
180
180
@ Override
181
181
void Options () {
182
182
}
183
183
184
- @ Produces (MediaType .TEXT_XML ) // $ProducesAnnotation=text/xml
184
+ @ Produces (MediaType .TEXT_XML ) // $ ProducesAnnotation=text/xml
185
185
@ Override
186
186
void Head () {
187
187
}
188
188
189
189
}
190
190
191
- @ Produces (MediaType .TEXT_XML ) // $ProducesAnnotation=text/xml
191
+ @ Produces (MediaType .TEXT_XML ) // $ ProducesAnnotation=text/xml
192
192
class ExtendsJakartaRs1WithProducesAnnotation extends JakartaRs1 {
193
193
@ Override
194
- int Get () { // $ResourceMethod=text/xml
194
+ int Get () { // $ ResourceMethod=text/xml
195
195
return 2 ;
196
196
}
197
197
198
198
@ Override
199
- @ QueryParam ("" ) // $InjectionAnnotation
199
+ @ QueryParam ("" ) // $ InjectionAnnotation
200
200
void Post () {
201
201
}
202
202
203
203
@ Override
204
- double Delete () { // $ResourceMethod=text/plain
204
+ double Delete () { // $ ResourceMethod=text/plain
205
205
return 2.0 ;
206
206
}
207
207
208
208
@ Override
209
- void Put () { // $ResourceMethod=text/html
209
+ void Put () { // $ ResourceMethod=text/html
210
210
}
211
211
212
212
@ Override
213
- void Options () { // $ResourceMethod=text/xml
213
+ void Options () { // $ ResourceMethod=text/xml
214
214
}
215
215
}
0 commit comments