Class MCRSessionResource

java.lang.Object
org.mycore.webtools.session.MCRSessionResource

@Path("session") public class MCRSessionResource extends Object
Resource which provides information about mycore sessions.
Author:
Matthias Eichner
  • Constructor Details

    • MCRSessionResource

      public MCRSessionResource()
  • Method Details

    • list

      @GET @Produces("application/json") @Path("list") public jakarta.ws.rs.core.Response list(@DefaultValue("false") @QueryParam("resolveHostname") Boolean resolveHostname)
      Lists all MCRSession's in json format.
      Parameters:
      resolveHostname - (false) if the host names are resolved. Resolving host names takes some time, so this is deactivated by default
      Returns:
      list of sessions
    • kill

      @POST @Path("kill/{id}") public jakarta.ws.rs.core.Response kill(@PathParam("id") String sessionID)
      Kills the session with the specified session identifier.
      Returns:
      200 OK if the session could be killed