org.glassfish.jersey.examples.bookmark_em.resource
Class UsersResource
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.resource.UsersResource
@Path(value="/users/")
public class UsersResource
- extends Object
- Author:
- Jakub Podlesak (jakub.podlesak at oracle.com)
|
Constructor Summary |
UsersResource()
Creates a new instance of Users |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsersResource
public UsersResource()
- Creates a new instance of Users
getUsers
public List<UserEntity> getUsers()
getUser
@Path(value="{userid}/")
public UserResource getUser(@PathParam(value="userid")
String userid)
getUsersAsJsonArray
@GET
@Produces(value="application/json")
public org.codehaus.jettison.json.JSONArray getUsersAsJsonArray()
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.