File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/main/java/oracle/demo Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -711,6 +711,10 @@ $ curl -v -u mary:password2 localhost:8080/security/basic/admin
711
711
# mary (user role) -> /user
712
712
$ curl -v -u mary:password2 localhost:8080/security/basic/user
713
713
< HTTP/1.1 200 OK
714
+
715
+ # John (admin role) -> /admin
716
+ $ curl -v -u john:password1 localhost:8080/security/basic/admin
717
+ < HTTP/1.1 200 OK
714
718
```
715
719
</details >
716
720
<br >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static long get(){
26
26
// helper method
27
27
public static long getUptime (){
28
28
final RuntimeMXBean runtimeMXBean = ManagementFactory .getRuntimeMXBean ();
29
- final String process = runtimeMXBean .getName ();
29
+ // final String process = runtimeMXBean.getName();
30
30
return runtimeMXBean .getUptime ();
31
31
}
32
32
Original file line number Diff line number Diff line change 10
10
11
11
import javax .enterprise .context .ApplicationScoped ;
12
12
import javax .inject .Inject ;
13
- import javax .jms .ObjectMessage ;
14
13
import javax .json .bind .Jsonb ;
15
14
import javax .json .bind .JsonbBuilder ;
16
15
import javax .ws .rs .DELETE ;
21
20
import javax .ws .rs .PathParam ;
22
21
23
22
import org .eclipse .microprofile .reactive .messaging .Acknowledgment ;
24
- import org .eclipse .microprofile .reactive .messaging .Incoming ;
25
23
import org .eclipse .microprofile .reactive .messaging .Message ;
26
- import org .eclipse .microprofile .reactive .messaging .Outgoing ;
27
24
import org .eclipse .microprofile .reactive .streams .operators .ReactiveStreams ;
28
25
import org .reactivestreams .FlowAdapters ;
29
26
import org .reactivestreams .Publisher ;
You can’t perform that action at this time.
0 commit comments