org.glassfish.jersey.examples.jsonp
Class ChangeListResource
java.lang.Object
org.glassfish.jersey.examples.jsonp.ChangeListResource
@Path(value="changes")
@Produces(value={"application/x-javascript","application/json","application/xml"})
public class ChangeListResource- extends Object
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeListResource
public ChangeListResource()
getChanges
@GET
@JSONP(queryParam="__callback")
public List<ChangeRecordBean> getChanges(@QueryParam(value="__callback")
String callback,
@QueryParam(value="type")
int type)
getLastChange
@GET
@Path(value="latest")
@JSONP
public ChangeRecordBean getLastChange(@QueryParam(value="callback")
String callback,
@QueryParam(value="type")
int type)
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.