Class UserResource

    • Field Detail

      • logservice

        @Inject
        org.osgi.service.log.LogService logservice
      • useradmin

        @Inject
        no.priv.bang.osgiservice.users.UserManagementService useradmin
    • Constructor Detail

      • UserResource

        public UserResource()
    • Method Detail

      • get

        @GET
        @Produces("text/html")
        public javax.ws.rs.core.Response get()
      • submit

        @POST
        @Produces("text/html")
        public javax.ws.rs.core.Response submit​(@FormParam("email")
                                                String email,
                                                @FormParam("firstname")
                                                String firstname,
                                                @FormParam("lastname")
                                                String lastname)
      • fillFormValues

        org.jsoup.nodes.FormElement fillFormValues​(org.jsoup.nodes.Document html,
                                                   String email,
                                                   String firstname,
                                                   String lastname)
      • loadHtmlFileAndFillForm

        private org.jsoup.nodes.Document loadHtmlFileAndFillForm​(no.priv.bang.osgiservice.users.User user)
                                                          throws IOException
        Throws:
        IOException
      • setMessage

        static void setMessage​(org.jsoup.nodes.Document html,
                               String message)