org.glassfish.jersey.examples.bookmark_em.resource
Class BookmarksResource
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.resource.BookmarksResource
public class BookmarksResource
- extends Object
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com), Paul Sandoz (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookmarksResource
public BookmarksResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
UserTransaction utx,
UserResource userResource)
- Creates a new instance of BookmarksResource
getBookmarks
public Collection<BookmarkEntity> getBookmarks()
getBookmark
@Path(value="{bmid: .+}")
public BookmarkResource getBookmark(String bmid)
getBookmarksAsJsonArray
public org.codehaus.jettison.json.JSONArray getBookmarksAsJsonArray()
postForm
public Response postForm(org.codehaus.jettison.json.JSONObject bookmark)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.