@Path(value="/user") public class UserHandler extends Handler
| Modifier and Type | Class and Description |
|---|---|
static class |
UserHandler.InvalidatePasswordException |
static class |
UserHandler.TokenResult |
static class |
UserHandler.UsernameDuplicateException |
| Modifier and Type | Field and Description |
|---|---|
javax.persistence.EntityManager |
em |
annotation, context| Constructor and Description |
|---|
UserHandler() |
| Modifier and Type | Method and Description |
|---|---|
User |
info(String id) |
UserHandler.TokenResult |
login(String username,
String password) |
User |
signup(String username,
String password,
String email) |
@GET @Path(value="/signup") public User signup(@QueryParam(value="username") String username, @QueryParam(value="password") String password, @QueryParam(value="email") String email) throws UserHandler.UsernameDuplicateException
@GET @Path(value="/login") public UserHandler.TokenResult login(@QueryParam(value="username") String username, @QueryParam(value="password") String password) throws UserHandler.InvalidatePasswordException
Copyright © 2015. All rights reserved.