org.glassfish.jersey.examples.bookmark_em.resource
Class BookmarkResource
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.resource.BookmarkResource
public class BookmarkResource
- extends java.lang.Object
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com), Paul Sandoz (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)
|
Constructor Summary |
BookmarkResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
javax.transaction.UserTransaction utx,
UserEntity userEntity,
java.lang.String bmid)
Creates a new instance of UserResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BookmarkResource
public BookmarkResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
javax.transaction.UserTransaction utx,
UserEntity userEntity,
java.lang.String bmid)
- Creates a new instance of UserResource
getBookmark
public org.codehaus.jettison.json.JSONObject getBookmark()
putBookmark
public void putBookmark(org.codehaus.jettison.json.JSONObject jsonEntity)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
deleteBookmark
public void deleteBookmark()
asString
public java.lang.String asString()
asJson
public org.codehaus.jettison.json.JSONObject asJson()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.