Class SessionResource

    • Method Detail

      • toRepresentation

        @GET
        @Produces("application/json")
        public Stream<SessionRepresentation> toRepresentation()
        Get session information.
        Returns:
      • devices

        @Path("devices")
        @GET
        @Produces("application/json")
        public Collection<DeviceRepresentation> devices()
        Get device activity information based on the active sessions.
        Returns:
      • logout

        @DELETE
        @Produces("application/json")
        public javax.ws.rs.core.Response logout​(@QueryParam("current")
                                                boolean removeCurrent)
        Remove sessions
        Parameters:
        removeCurrent - remove current session (default is false)
        Returns:
      • logout

        @Path("/{id}")
        @DELETE
        @Produces("application/json")
        public javax.ws.rs.core.Response logout​(@PathParam("id")
                                                String id)
        Remove a specific session
        Parameters:
        id - a specific session to remove
        Returns: