Package org.mycore.webtools.session
Class MCRSessionResource
java.lang.Object
org.mycore.webtools.session.MCRSessionResource
Resource which provides information about mycore sessions.
- Author:
- Matthias Eichner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
Kills the session with the specified session identifier.jakarta.ws.rs.core.Response
Lists allMCRSession
's in json format.
-
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 allMCRSession
'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
Kills the session with the specified session identifier.- Returns:
- 200 OK if the session could be killed
-