org.pentaho.platform.web.http.session
Class PentahoHttpSession

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.engine.core.system.BaseSession
          extended by org.pentaho.platform.web.http.session.PentahoHttpSession
All Implemented Interfaces:
Serializable, IAuditable, ILogger, IPentahoSession

public class PentahoHttpSession
extends BaseSession

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
Fields inherited from interface org.pentaho.platform.api.engine.IPentahoSession
PENTAHO_SESSION_KEY
 
Fields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
 
Constructor Summary
PentahoHttpSession(String userName, HttpSession session, Locale locale, IPentahoSession userSession)
           
 
Method Summary
 void destroy()
          Destroys any resources owned by the session object
 Object getAttribute(String attributeName)
          Get the value of a named session attribute
 Iterator getAttributeNames()
          Returns an enumeration of the names of the attributes stored in the session
 Log getLogger()
           
 Object removeAttribute(String attributeName)
          Removes an attribute from the session and returns is
 void setAttribute(String attributeName, Object value)
          Sets the value of a session attribute
 
Methods inherited from class org.pentaho.platform.engine.core.system.BaseSession
getActionName, getBackgroundExecutionAlert, getId, getLocale, getName, getObjectName, getProcessId, isAuthenticated, resetBackgroundExecutionAlert, setActionName, setAuthenticated, setBackgroundExecutionAlert, setNotAuthenticated, setProcessId
 
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.platform.api.engine.ILogger
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
 

Constructor Detail

PentahoHttpSession

public PentahoHttpSession(String userName,
                          HttpSession session,
                          Locale locale,
                          IPentahoSession userSession)
Method Detail

getLogger

public Log getLogger()
Specified by:
getLogger in class PentahoBase

getAttributeNames

public Iterator getAttributeNames()
Description copied from interface: IPentahoSession
Returns an enumeration of the names of the attributes stored in the session

Returns:
The enumeration of the attribute names

getAttribute

public Object getAttribute(String attributeName)
Description copied from interface: IPentahoSession
Get the value of a named session attribute

Parameters:
attributeName - The name of the attribute
Returns:
The value of the attribute

setAttribute

public void setAttribute(String attributeName,
                         Object value)
Description copied from interface: IPentahoSession
Sets the value of a session attribute

Parameters:
attributeName - The name of the attribute
value - The value of the attribute

removeAttribute

public Object removeAttribute(String attributeName)
Description copied from interface: IPentahoSession
Removes an attribute from the session and returns is

Parameters:
attributeName - The name of the attribute to remove
Returns:
The value of the removed attribute

destroy

public void destroy()
Description copied from interface: IPentahoSession
Destroys any resources owned by the session object

Specified by:
destroy in interface IPentahoSession
Overrides:
destroy in class BaseSession