Class AuthserviceResource

    • Field Detail

      • httpHeaders

        @Context
        javax.ws.rs.core.HttpHeaders httpHeaders
      • logservice

        @Inject
        org.osgi.service.log.LogService logservice
    • Constructor Detail

      • AuthserviceResource

        public AuthserviceResource()
    • Method Detail

      • getIndex

        @GET
        @Produces("text/html")
        public InputStream getIndex()
      • getOpenIconicCss

        @GET
        @Produces("text/css")
        @Path("open-iconic/font/css/open-iconic-bootstrap.min.css")
        public InputStream getOpenIconicCss()
      • getOpenIconicWoff

        @GET
        @Produces("fond/woff")
        @Path("open-iconic/font/fonts/open-iconic.woff")
        public InputStream getOpenIconicWoff()
      • getLogin

        @GET
        @Path("/login")
        @Produces("text/html")
        public javax.ws.rs.core.Response getLogin​(@QueryParam("originalUri")
                                                  String originalUri)
      • postLogin

        @POST
        @Path("/login")
        @Consumes("application/x-www-form-urlencoded")
        @Produces("text/html")
        public javax.ws.rs.core.Response postLogin​(@FormParam("username")
                                                   String username,
                                                   @FormParam("password")
                                                   String password,
                                                   @FormParam("originalUri")
                                                   String originalUri)
      • logout

        @GET
        @Path("/logout")
        @Produces("text/html")
        public javax.ws.rs.core.Response logout()
      • findRedirectLocation

        URI findRedirectLocation()
      • checkLogin

        @GET
        @Path("/check")
        @Produces("text/plain")
        public javax.ws.rs.core.Response checkLogin()
      • fillFormValues

        private org.jsoup.nodes.FormElement fillFormValues​(org.jsoup.nodes.Document html,
                                                           String originalUri)
      • fillFormValues

        private org.jsoup.nodes.FormElement fillFormValues​(org.jsoup.nodes.Document html,
                                                           String originalUri,
                                                           String username,
                                                           String password)
      • findForm

        org.jsoup.nodes.FormElement findForm​(org.jsoup.nodes.Document html)
      • updateOriginalUri

        void updateOriginalUri​(org.jsoup.nodes.FormElement form,
                               String originalUri)