com.bowstreet.webapp.util
Interface ModelStateManager

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
WebAppModelStateManager

public interface ModelStateManager
extends java.io.Serializable

Interface for classes which oversee saving and restoring the linked model structure of an application by use of information encoded in a URL.


Field Summary
static java.lang.String MODEL_STATE_MANAGER_ATTRIBUTE
          Session attribute for storing ModelStateManager implementation
 
Method Summary
 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.
 void realizeState(javax.servlet.http.HttpServletRequest req, java.lang.String ID)
          Given a previously-computed application state ID, bring the current application state into synch with the implied structure.
 void setWebAppAccess(WebAppAccess webAppAccess)
          Call this to give other methods a WebAppAccess implementation to use.
 

Field Detail

MODEL_STATE_MANAGER_ATTRIBUTE

static final java.lang.String MODEL_STATE_MANAGER_ATTRIBUTE
Session attribute for storing ModelStateManager implementation

See Also:
Constant Field Values
Method Detail

getStateID

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.

Parameters:
req - the HttpServletRequest for this request
Returns:
a short string representing the current state - use URL-friendly characters, since that's where this will be encoded

realizeState

void realizeState(javax.servlet.http.HttpServletRequest req,
                  java.lang.String ID)
Given a previously-computed application state ID, bring the current application state into synch with the implied structure.

Parameters:
req - the HttpServletRequest for this request
ID - the state identifier for the state in question

setWebAppAccess

void setWebAppAccess(WebAppAccess webAppAccess)
Call this to give other methods a WebAppAccess implementation to use.

Parameters:
webAppAccess - a valid WebAppAccess implementation


Copyright © 2009 IBM. All Rights Reserved.