|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.state.StateUtil
public class StateUtil
Class containing utility methods for state.
| Constructor Summary | |
|---|---|
StateUtil()
|
|
| Method Summary | |
|---|---|
EncodingUtil |
getEncodingUtil()
|
java.lang.String |
getHDIVParameter()
|
void |
init()
StateUtil initialization with HDIV parameter name stored in http session. |
boolean |
isMemoryStrategy(java.lang.String value)
Checks if the memory strategy is being used |
IState |
restoreHashState(java.lang.String value)
Checks if the state hash received from the client and the hash stored in session match. |
IState |
restoreState(java.lang.String requestState)
Restore state data from request. |
void |
setEncodingUtil(EncodingUtil encodingUtil)
|
void |
setHDIVParameter(java.lang.String parameter)
|
void |
setStrategy(java.lang.String strategy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateUtil()
| Method Detail |
|---|
public void init()
public IState restoreState(java.lang.String requestState)
request. State restore from memory can
be done using an identifier or or using the serialized data received in the
request.
requestState - String that contains HDIV state received in the request
request.
HDIVException - If the state doesn't exist a new HDIV exception is
thrown.public boolean isMemoryStrategy(java.lang.String value)
public IState restoreHashState(java.lang.String value)
IState is
returned. Otherwise, a HDIVException is thrown.
value - State received in the request encoded in Base64
IState obtained from
valuepublic java.lang.String getHDIVParameter()
public void setHDIVParameter(java.lang.String parameter)
parameter - The hDIVParameter to set.public EncodingUtil getEncodingUtil()
public void setEncodingUtil(EncodingUtil encodingUtil)
encodingUtil - The encodingUtil to set.public void setStrategy(java.lang.String strategy)
strategy - The strategy to set.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||