Package com.example.helloworld.resources
Class HelloWorldResource
java.lang.Object
com.example.helloworld.resources.HelloWorldResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreceiveDate
(LocalDateParam date) void
receiveHello
(Saying saying)
-
Constructor Details
-
HelloWorldResource
-
-
Method Details
-
sayHello
@GET @Timed(name="get-requests-timed") @Metered(name="get-requests-metered") @CacheControl(maxAge=1, maxAgeUnit=DAYS) public Saying sayHello(@QueryParam("name") Optional<String> name) -
receiveHello
-
receiveDate
@GET @Path("/date") @Produces("text/plain") public String receiveDate(@QueryParam("date") LocalDateParam date)
-