Class SessionsResource


  • @Path("/sessions")
    public class SessionsResource
    extends AbstractResource
    Represents sessions with GlassFish Rest service
    Author:
    Mitesh Meswani
    • Constructor Detail

      • SessionsResource

        public SessionsResource()
    • Method Detail

      • create

        @POST
        @Consumes({"application/json","application/xml","application/x-www-form-urlencoded"})
        @Produces({"text/html","application/json","application/xml"})
        public jakarta.ws.rs.core.Response create​(HashMap<String,​String> data)
        Get a new session with GlassFish Rest service If a request lands here when authentication has been turned on => it has been authenticated.
        Returns:
        a new session with GlassFish Rest service
      • getSessionResource

        @Path("{sessionId}/")
        public SessionResource getSessionResource​(@PathParam("sessionId")
                                                  String sessionId)