@Path(value="/people/{personId}")
@Produces(value="application/json")
public class PersonResource
extends Object
| Constructor and Description |
|---|
PersonResource(PersonDAO peopleDAO) |
| Modifier and Type | Method and Description |
|---|---|
Person |
getPerson(OptionalLong personId) |
PersonView |
getPersonViewFreemarker(OptionalLong personId) |
PersonView |
getPersonViewMustache(OptionalLong personId) |
public PersonResource(PersonDAO peopleDAO)
@GET @UnitOfWork public Person getPerson(@PathParam(value="personId") OptionalLong personId)
@GET @Path(value="/view_freemarker") @UnitOfWork @Produces(value="text/html") public PersonView getPersonViewFreemarker(@PathParam(value="personId") OptionalLong personId)
@GET @Path(value="/view_mustache") @UnitOfWork @Produces(value="text/html") public PersonView getPersonViewMustache(@PathParam(value="personId") OptionalLong personId)
Copyright © 2011. All rights reserved.