public class JGDISession
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this jgdi session
|
static void |
closeAllSessions()
Close all jgdi sessions
|
static JGDISession |
closeSession(long sessionId)
Close a jgdi session.
|
static JGDISession |
createNewSession(long sessionId,
java.lang.String url)
Create a new jgdi session
|
static JGDISession |
getCurrentSession()
Get the jgdi session from the security context
|
long |
getId()
get the id of the session
|
JGDI |
getJGDI()
Get the jgdi object of this session
|
NotificationBridge |
getNotificationBridge()
Get the notification bridge of this session
|
boolean |
isClosed()
is this session already closed
|
public JGDI getJGDI() throws JGDIException
JGDIException - if the jgdi object could not be createdpublic NotificationBridge getNotificationBridge()
public void close()
public boolean isClosed()
true if this session is already closedpublic static JGDISession getCurrentSession() throws JGDIException
JGDIException - new jgdi session has been found in the security contextpublic static JGDISession closeSession(long sessionId)
sessionId - id of the sessionnull if the session does
not exist or if the session has been already closedpublic static JGDISession createNewSession(long sessionId, java.lang.String url)
sessionId - id of the sessionurl - jgdi connection urlnull if a session with this id already existspublic static void closeAllSessions()
public long getId()
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.