Class ChangeListResource
- java.lang.Object
-
- org.glassfish.jersey.examples.jsonp.ChangeListResource
-
@Path("changes") @Produces({"application/x-javascript","application/json","application/xml"}) public class ChangeListResource extends Object- Author:
- Jakub Podlesak
-
-
Constructor Summary
Constructors Constructor Description ChangeListResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChangeRecordBean>getChanges(String callback, int type)ChangeRecordBeangetLastChange(String callback, int type)
-
-
-
Method Detail
-
getChanges
@GET @JSONP(queryParam="__callback") public List<ChangeRecordBean> getChanges(@QueryParam("__callback") String callback, @QueryParam("type") int type)
-
getLastChange
@GET @Path("latest") @JSONP public ChangeRecordBean getLastChange(@QueryParam("callback") String callback, @QueryParam("type") int type)
-
-