Package com.example.helloworld.resources
Class PersonResource
java.lang.Object
com.example.helloworld.resources.PersonResource
@Path("/people/{personId}")
@Produces("application/json")
public class PersonResource
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPerson
(OptionalLong personId) getPersonViewFreemarker
(OptionalLong personId) getPersonViewMustache
(OptionalLong personId)
-
Constructor Details
-
PersonResource
-
-
Method Details
-
getPerson
-
getPersonViewFreemarker
@GET @Path("/view_freemarker") @UnitOfWork @Produces("text/html") public PersonView getPersonViewFreemarker(@PathParam("personId") OptionalLong personId) -
getPersonViewMustache
@GET @Path("/view_mustache") @UnitOfWork @Produces("text/html") public PersonView getPersonViewMustache(@PathParam("personId") OptionalLong personId)
-