org.glassfish.jersey.examples.bookmark_em.resource
Class UserResource
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.resource.UserResource
public class UserResource
- extends Object
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com), Paul Sandoz (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)
UserResource
public UserResource(UriInfo uriInfo,
javax.persistence.EntityManager em,
UserTransaction utx,
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 String toString()
- Overrides:
toString in class Object
getUserEntity
public UserEntity getUserEntity()
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.