|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISession
A custom wrapper for http session request that returns a wrapped http session.
| Method Summary | |
|---|---|
void |
addPage(java.lang.String pageId,
IPage page)
It adds a new page to the user session. |
ICipherHTTP |
getDecryptCipher()
Inilitializes the data decrypter. |
ICipherHTTP |
getEncryptCipher()
Initializes the data cipher. |
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 |
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 |
removeEndedPages(java.lang.String conversationId)
Deletes from session the data related to the finished flows. |
| Method Detail |
|---|
void addPage(java.lang.String pageId,
IPage page)
pageId - Page identifierpage - Page with all the information about statesvoid removeEndedPages(java.lang.String conversationId)
IPage are deleted.
conversationId - finished flow identifier
IState getState(java.lang.String pageId,
java.lang.String stateId)
stateId related to the page
identifier pageId.
stateId throws HDIVException If
the state doesn't exist a new HDIV exception is thrown.
java.lang.String getStateHash(java.lang.String pageId,
java.lang.String stateId)
stateId related
to page identifier pageId.
stateId
HDIVException - If the state doesn't exist a new HDIV exception is
thrown.java.lang.String getPageId()
IPage getPage(java.lang.String pageId)
pageId.
pageId - page id
pageId.javax.servlet.http.HttpSession getWebSession()
ICipherHTTP getEncryptCipher()
HDIVException - If the state doesn't exist a new HDIV exception is
thrown.ICipherHTTP getDecryptCipher()
HDIVException - if there is an error in cipher initialization.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||