Class RequestScopedResource


  • @RequestScoped
    @Path("req")
    public class RequestScopedResource
    extends Object
    JAX-RS resource class backed by a request scoped CDI bean.
    Author:
    Jakub Podlesak
    • Constructor Detail

      • RequestScopedResource

        public RequestScopedResource()
    • Method Detail

      • getCounter

        @GET
        @Path("app/counter")
        public int getCounter()
      • getMyself

        @GET
        @Path("myself")
        public String getMyself()
      • interceptedParameterized

        @GET
        @Path("parameterized")
        public String interceptedParameterized​(@QueryParam("q")
                                               String q)
      • parameterizedStraight

        @GET
        @Path("straight")
        public String parameterizedStraight​(@QueryParam("q")
                                            String q)
      • interceptedParameterizedAsync

        @GET
        @Path("parameterized-async")
        public void interceptedParameterizedAsync​(@QueryParam("q")
                                                  String q,
                                                  @Suspended
                                                  jakarta.ws.rs.container.AsyncResponse response)
      • getJaxRsInjectedUIUri

        @GET
        @Path("ui/jax-rs-field/{d}")
        public String getJaxRsInjectedUIUri()
      • getCdiInjectedJaxRsAppUri

        @GET
        @Path("ui/jax-rs-app-field/{d}")
        public String getCdiInjectedJaxRsAppUri()