Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.servlet.state
Class StateUtils

java.lang.Object
  |
  +--oracle.cabo.servlet.state.StateUtils

public class StateUtils
extends java.lang.Object

Utilities for working with States.


Method Summary
static MutableState cloneState(StateManager targetManager, State oldState)
          Clones a state object, giving you a mutable state object from a specific state manager.
static StateManager getStateManager(javax.servlet.http.HttpSession session)
          Retrieve a StateManager stored at a default location on an HttpSession.
static StateManager getStateManager(javax.servlet.http.HttpSession session, java.lang.String key)
          Retrieve a StateManager stored on an HttpSession.
static void setStateManager(javax.servlet.http.HttpSession session, StateManager manager)
          Stores a StateManager at a default location on an HttpSession.
static void setStateManager(javax.servlet.http.HttpSession session, StateManager manager, java.lang.String key)
          Stores a StateManager on an HttpSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cloneState

public static MutableState cloneState(StateManager targetManager,
                                      State oldState)
Clones a state object, giving you a mutable state object from a specific state manager. This does not implement a "deep" clone; the individual properties of the state are directly copied, so mutating those objects will affect the original state object.

getStateManager

public static StateManager getStateManager(javax.servlet.http.HttpSession session)
Retrieve a StateManager stored at a default location on an HttpSession. The StateManager will automatically be expired if the HttpSession expires, or if it is replaced on the HttpSession.

getStateManager

public static StateManager getStateManager(javax.servlet.http.HttpSession session,
                                           java.lang.String key)
Retrieve a StateManager stored on an HttpSession. The StateManager will automatically be expired if the HttpSession expires, or if it is replaced on the HttpSession.

setStateManager

public static void setStateManager(javax.servlet.http.HttpSession session,
                                   StateManager manager)
Stores a StateManager at a default location on an HttpSession. The StateManager will automatically be expired if the HttpSession expires, or if it is replaced on the HttpSession.

setStateManager

public static void setStateManager(javax.servlet.http.HttpSession session,
                                   StateManager manager,
                                   java.lang.String key)
Stores a StateManager on an HttpSession. The StateManager will automatically be expired if the HttpSession expires, or if it is replaced on the HttpSession.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.