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 -
Method Summary
Modifier and TypeMethodDescriptiongetChanges(String callback, int type) getLastChange(String callback, int type)
-
Constructor Details
-
ChangeListResource
public ChangeListResource()
-
-
Method Details
-
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)
-