org.glassfish.jersey.examples.jsonp
Class ChangeListResource

java.lang.Object
  extended by 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)

Constructor Summary
ChangeListResource()
           
 
Method Summary
 List<ChangeRecordBean> getChanges(String callback, int type)
           
 ChangeRecordBean getLastChange(String callback, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeListResource

public ChangeListResource()
Method Detail

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-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.