|
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.session.SessionHDIV
public class SessionHDIV
A custom wrapper for http session request that returns a wrapped http session.
| Constructor Summary | |
|---|---|
SessionHDIV()
|
|
| Method Summary | |
|---|---|
void |
addPage(java.lang.String pageId,
IPage page)
It adds a new page to the user session. |
java.lang.Integer |
generateInitialPageId()
Generates a random number for the first page identifier |
java.lang.String |
getCacheName()
|
java.lang.String |
getCipherName()
|
ICipherHTTP |
getDecryptCipher()
Inilitializes the data decrypter. |
ICipherHTTP |
getEncryptCipher()
Initializes the data cipher. |
java.lang.String |
getKeyName()
|
IPage |
getPage(java.lang.String pageId)
Returns the page with id pageId. |
java.lang.String |
getPageId()
Obtains from the user session the page identifier where the current request or form is |
java.lang.String |
getRequestName()
|
IState |
getState(java.lang.String pageId,
java.lang.String stateId)
Obtains the state identifier stateId related to the page
identifier pageId. |
java.lang.String |
getStateHash(java.lang.String pageId,
java.lang.String stateId)
Obtains the hash of the state identifier stateId related
to page identifier pageId. |
javax.servlet.http.HttpSession |
getWebSession()
|
void |
init()
SessionHDIV initialization with HTTP session. |
void |
initTesting()
Testing initialization |
void |
removeEndedPages(java.lang.String conversationId)
Deletes from session the data related to the finished flows. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. |
void |
setCacheName(java.lang.String cacheName)
|
void |
setCipherName(java.lang.String cipherName)
|
void |
setKeyName(java.lang.String keyName)
|
void |
setRequestName(java.lang.String requestName)
|
void |
setWebSession(javax.servlet.http.HttpSession webSession)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionHDIV()
| Method Detail |
|---|
public void init()
public void initTesting()
public java.lang.String getPageId()
getPageId in interface ISessionpublic IPage getPage(java.lang.String pageId)
pageId.
getPage in interface ISessionpageId - page id
pageId.public java.lang.Integer generateInitialPageId()
public void addPage(java.lang.String pageId,
IPage page)
addPage in interface ISessionpageId - Page identifierpage - Page with all the information about statespublic void removeEndedPages(java.lang.String conversationId)
IPage are deleted.
removeEndedPages in interface ISessionconversationId - finished flow identifier
public IState getState(java.lang.String pageId,
java.lang.String stateId)
stateId related to the page
identifier pageId.
getState in interface ISessionstateId throws HDIVException If
the state doesn't exist a new HDIV exception is thrown.
public java.lang.String getStateHash(java.lang.String pageId,
java.lang.String stateId)
stateId related
to page identifier pageId.
getStateHash in interface ISessionstateId
HDIVException - If the state doesn't exist a new HDIV exception is
thrown.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarebeanFactory - owning BeanFactory (may not be null). The bean can
immediately call methods on the factory.public ICipherHTTP getEncryptCipher()
getEncryptCipher in interface ISessionHDIVException - If the state doesn't exist a new HDIV exception is
thrown.public ICipherHTTP getDecryptCipher()
getDecryptCipher in interface ISessionHDIVException - if there is an error in cipher initialization.public javax.servlet.http.HttpSession getWebSession()
getWebSession in interface ISessionpublic void setWebSession(javax.servlet.http.HttpSession webSession)
webSession - The webSession to set.public java.lang.String getCacheName()
public void setCacheName(java.lang.String cacheName)
cacheName - The cacheName to set.public java.lang.String getCipherName()
public void setCipherName(java.lang.String cipherName)
cipherName - The cipherName to set.public java.lang.String getRequestName()
public void setRequestName(java.lang.String requestName)
requestName - The requestName to set.public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName - The keyName to set.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||