Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.4.0)
E10660-04


oracle.tip.pc.services.hw.worklist.servlet
Class SessionWrapper

java.lang.Object
  extended by oracle.tip.pc.services.hw.worklist.servlet.SessionWrapper

All Implemented Interfaces:
java.io.Serializable

Deprecated. Replaced by classes in oracle.bpel.services.workflow package

public class SessionWrapper
extends java.lang.Object
implements java.io.Serializable

SessionWrapper is a simple wrapper class to store all session related information for a user. It maintains all session information in a private map. When a session cleanup occurs, all session attributes stored internally are cleanedup ensuring that there are no unused objects consuming memory.

See Also:
Serialized Form

Constructor Summary
SessionWrapper(HttpSession userSession)
          Deprecated. Constructor for creating a new session wrapper instance

 

Method Summary
 java.lang.Object get(java.lang.String key)
          Deprecated. gets the object associated with the specified key
static SessionWrapper getInstance(HttpSession userSession)
          Deprecated. gets the session wrapper instance associated with the specified HttpSession
 java.util.List getKeys()
          Deprecated. returns a list of keys for all the session attributes stored in this class.
 void remove(java.lang.String key)
          Deprecated. removes the key and the associated object from the session attributes stored in this class.
 void set(java.lang.String key, java.lang.Object obj)
          Deprecated. sets the object as the value of the specified key
 int size()
          Deprecated. returns the size of the key list for all the session attributes stored in this class.
 void valueBound(HttpSessionBindingEvent event)
          Deprecated. callback method for handling session binding event.
 void valueUnbound(HttpSessionBindingEvent event)
          Deprecated. callback method for handling session unbinding event.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SessionWrapper

public SessionWrapper(HttpSession userSession)
Deprecated. 
Constructor for creating a new session wrapper instance
Parameters:
userSession - the HttpSession associated with the request

Method Detail

getInstance

public static SessionWrapper getInstance(HttpSession userSession)
Deprecated. 
gets the session wrapper instance associated with the specified HttpSession
Parameters:
userSession - the HttpSession associated with the request
Returns:
the session wrapper instance associated with the HttpSession

set

public void set(java.lang.String key,
                java.lang.Object obj)
Deprecated. 
sets the object as the value of the specified key
Parameters:
key - name of the session attribute
object - the associated object

get

public java.lang.Object get(java.lang.String key)
Deprecated. 
gets the object associated with the specified key
Parameters:
key - name of the session attribute
Returns:
the object associated with the key

getKeys

public java.util.List getKeys()
Deprecated. 
returns a list of keys for all the session attributes stored in this class.
Returns:
the list of keys

remove

public void remove(java.lang.String key)
Deprecated. 
removes the key and the associated object from the session attributes stored in this class.
Parameters:
key - name of the session attribute

size

public int size()
Deprecated. 
returns the size of the key list for all the session attributes stored in this class.
Returns:
the size of the key list

valueBound

public void valueBound(HttpSessionBindingEvent event)
Deprecated. 
callback method for handling session binding event. Does nothing for now.

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Deprecated. 
callback method for handling session unbinding event. Explicitly cleans up all session attributes stored in this class.

Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.4.0)
E10660-04


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.