org.gcube.portlets.user.tdw.server.util
Class SessionUtil

java.lang.Object
  extended by org.gcube.portlets.user.tdw.server.util.SessionUtil

public class SessionUtil
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected static org.apache.log4j.Logger logger
           
static String TD_SESSIONS_ATTRIBUTE_NAME
           
 
Constructor Summary
SessionUtil()
           
 
Method Summary
static void closeDataSource(javax.servlet.http.HttpSession httpSession, int tdSessionId)
           
static DataSource getDataSource(javax.servlet.http.HttpSession httpSession, int tdSessionId)
           
protected static TDSession getSession(org.gcube.application.framework.core.session.ASLSession session, int tdSessionId)
           
protected static org.gcube.application.framework.core.session.ASLSession getSession(javax.servlet.http.HttpSession httpSession)
           
static DataSource openDataSource(javax.servlet.http.HttpSession httpSession, TableId tableId)
           
static void setDataSource(javax.servlet.http.HttpSession httpSession, int tdSessionId, DataSource datasource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

TD_SESSIONS_ATTRIBUTE_NAME

public static final String TD_SESSIONS_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

SessionUtil

public SessionUtil()
Method Detail

getSession

protected static org.gcube.application.framework.core.session.ASLSession getSession(javax.servlet.http.HttpSession httpSession)

getDataSource

public static DataSource getDataSource(javax.servlet.http.HttpSession httpSession,
                                       int tdSessionId)

setDataSource

public static void setDataSource(javax.servlet.http.HttpSession httpSession,
                                 int tdSessionId,
                                 DataSource datasource)

getSession

protected static TDSession getSession(org.gcube.application.framework.core.session.ASLSession session,
                                      int tdSessionId)

openDataSource

public static DataSource openDataSource(javax.servlet.http.HttpSession httpSession,
                                        TableId tableId)
                                 throws DataSourceException
Throws:
DataSourceException

closeDataSource

public static void closeDataSource(javax.servlet.http.HttpSession httpSession,
                                   int tdSessionId)
                            throws DataSourceException
Throws:
DataSourceException


Copyright © 2013. All Rights Reserved.