Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @POST
  2. @Produces(MediaType.TEXT_HTML)
  3. @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  4. public void newUser(@FormParam("email") String email, @FormParam("vorname") String vorname, @FormParam("nachname") String nachname,
  5. @FormParam("geburtsdatum") String geburtsdatum, @FormParam("passwort") String passwort, @FormParam("kontostand") float kontostand, @Context HttpServletResponse servletResponse) throws IOException {
  6. User user = new User(email, vorname, nachname, geburtsdatum, passwort, kontostand);
  7. UserDAO.instance.getModel().put(email, user);
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement