Class RequestScopedResource
- java.lang.Object
-
- org.glassfish.jersey.examples.helloworld.RequestScopedResource
-
@RequestScoped @Path("req") public class RequestScopedResource extends ObjectJAX-RS resource class backed by a request scoped CDI bean.- Author:
- Jakub Podlesak
-
-
Constructor Summary
Constructors Constructor Description RequestScopedResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCdiInjectedJaxRsAppUri()intgetCounter()StringgetJaxRsInjectedUIUri()StringgetMyself()StringinterceptedParameterized(String q)voidinterceptedParameterizedAsync(String q, jakarta.ws.rs.container.AsyncResponse response)StringparameterizedStraight(String q)
-
-
-
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()
-
-