org.glassfish.admin.rest.resources
Class SessionsResource

java.lang.Object
  extended by org.glassfish.admin.rest.resources.SessionsResource

public class SessionsResource
extends java.lang.Object

Represents sessions with GlassFish Rest service

Author:
Mitesh Meswani

Field Summary
protected  org.jvnet.hk2.component.Habitat habitat
           
protected  javax.ws.rs.core.HttpHeaders requestHeaders
           
protected  javax.ws.rs.core.UriInfo uriInfo
           
 
Constructor Summary
SessionsResource()
           
 
Method Summary
 javax.ws.rs.core.Response create(java.util.HashMap<java.lang.String,java.lang.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(java.lang.String sessionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestHeaders

@Context
protected javax.ws.rs.core.HttpHeaders requestHeaders

uriInfo

@Context
protected javax.ws.rs.core.UriInfo uriInfo

habitat

@Context
protected org.jvnet.hk2.component.Habitat habitat
Constructor Detail

SessionsResource

public SessionsResource()
Method Detail

create

public javax.ws.rs.core.Response create(java.util.HashMap<java.lang.String,java.lang.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. It is safe to grant a session token

Returns:
a new session with GlassFish Rest service

getSessionResource

public SessionResource getSessionResource(java.lang.String sessionId)


Copyright © 2012 GlassFish Community. All Rights Reserved.