Class SessionsResource
- java.lang.Object
-
- org.glassfish.admin.rest.resources.AbstractResource
-
- org.glassfish.admin.rest.resources.SessionsResource
-
@Path("/sessions") public class SessionsResource extends AbstractResource
Represents sessions with GlassFish Rest service- Author:
- Mitesh Meswani
-
-
Field Summary
-
Fields inherited from class org.glassfish.admin.rest.resources.AbstractResource
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo
-
-
Constructor Summary
Constructors Constructor Description SessionsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.SessionResource
getSessionResource(String sessionId)
-
Methods inherited from class org.glassfish.admin.rest.resources.AbstractResource
getAuthenticatedUser, getSubject
-
-
-
-
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)
-
-