org.glassfish.jersey.examples.bookmark_em.resource
Class UserResource
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.resource.UserResource
public class UserResource
- 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 |
UserResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
javax.transaction.UserTransaction utx,
java.lang.String userid)
Creates a new instance of UserResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserResource
public UserResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
javax.transaction.UserTransaction utx,
java.lang.String userid)
- Creates a new instance of UserResource
getBookmarksResource
@Path(value="bookmarks/")
public BookmarksResource getBookmarksResource()
getUser
public org.codehaus.jettison.json.JSONObject getUser()
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
putUser
public Response putUser(org.codehaus.jettison.json.JSONObject jsonEntity)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
deleteUser
public void deleteUser()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getUserEntity
public UserEntity getUserEntity()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.