|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.bowstreet.webapp.util.WebAppModelStateManager
public class WebAppModelStateManager
Default implementation of ModelStateManager that uses minimal model serialization, storing linked model state only.
| Nested Class Summary | |
|---|---|
class |
WebAppModelStateManager.LinkedModelDescriptor
Encodes the state of a linked model slot. |
static interface |
WebAppModelStateManager.Restorable
Base for classes that encode and restore the state of an item. |
| Field Summary | |
|---|---|
static java.lang.String |
CURRENT_ID_ATTRIBUTE
|
| Fields inherited from interface com.bowstreet.webapp.util.ModelStateManager |
|---|
MODEL_STATE_MANAGER_ATTRIBUTE |
| Constructor Summary | |
|---|---|
WebAppModelStateManager()
|
|
| Method Summary | |
|---|---|
static ModelStateManager |
getManager(WebAppAccess webAppAccess,
java.lang.String mgrClassName)
Factory method: find a model state manager with the given class, creating it if necessary. |
java.lang.String |
getStateID(javax.servlet.http.HttpServletRequest req)
Analyze the current application state, and return an identifier that can be used to later reconstitute this structure. |
static void |
handleRequest(WebAppAccess webAppAccess)
Typical code to handle a request with an associated ModelStateManger. |
void |
realizeState(javax.servlet.http.HttpServletRequest req,
java.lang.String stateID)
Given a previously-computed application state ID, bring the current application state into synch with the implied structure. |
static void |
setManager(WebAppAccess webAppAccess,
ModelStateManager mgr)
Make this ModelStateManager instance be the current manager in session. |
void |
setWebAppAccess(WebAppAccess webAppAccess)
Call this to give other methods a WebAppAccess implementation to use. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CURRENT_ID_ATTRIBUTE
| Constructor Detail |
|---|
public WebAppModelStateManager()
| Method Detail |
|---|
public static ModelStateManager getManager(WebAppAccess webAppAccess,
java.lang.String mgrClassName)
public java.lang.String getStateID(javax.servlet.http.HttpServletRequest req)
getStateID in interface ModelStateManagerreq - the HttpServletRequest for this request
public static void handleRequest(WebAppAccess webAppAccess)
public void realizeState(javax.servlet.http.HttpServletRequest req,
java.lang.String stateID)
realizeState in interface ModelStateManagerreq - the HttpServletRequest for this requeststateID - the state identifier for the state in question
public static void setManager(WebAppAccess webAppAccess,
ModelStateManager mgr)
public void setWebAppAccess(WebAppAccess webAppAccess)
setWebAppAccess in interface ModelStateManagerwebAppAccess - a valid WebAppAccess implementation
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||