org.glassfish.jersey.examples.bookmark_em.resource
Class UserResource

java.lang.Object
  extended by 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
 
Method Summary
 void deleteUser()
           
 BookmarksResource getBookmarksResource()
           
 org.codehaus.jettison.json.JSONObject getUser()
           
 UserEntity getUserEntity()
           
 Response putUser(org.codehaus.jettison.json.JSONObject jsonEntity)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserResource

public UserResource(UriInfo uriInfo,
                    javax.persistence.EntityManager em,
                    javax.transaction.UserTransaction utx,
                    java.lang.String userid)
Creates a new instance of UserResource

Method Detail

getBookmarksResource

@Path(value="bookmarks/")
public BookmarksResource getBookmarksResource()

getUser

@GET
@Produces(value="application/json")
public org.codehaus.jettison.json.JSONObject getUser()
                                              throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

putUser

@PUT
@Consumes(value="application/json")
public Response putUser(org.codehaus.jettison.json.JSONObject jsonEntity)
                 throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

deleteUser

@DELETE
public void deleteUser()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUserEntity

public UserEntity getUserEntity()


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.