|
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.dataComposer.AbstractDataComposer
public abstract class AbstractDataComposer
It processes the data contributed by the HDIV custom tags. The aim of this class is to create an object of type IState for each possible request (form or link) in every page processed by the HDIV custom tags. The IState object is used to validate client's later requests.
The process of creating an IState object is as follows: Each time a link or a form processing begins, HDIV custom tags set the request beginning by calling beginRequest method. Once the beginning is set, an IState object is created and it is fill in with all the data of the request(parameter values, non editable values, parameter types) using the compose method. After processing all the request data of the link or form, custom tags set the end of the processing by calling endRequest method.
Depending on the strategy defined in HDIV configuration (memory, encoded or hash), the IState object is stored in the user session or is sent to the client in the html code by adding an extra parameter called _HDIV_STATE_.
In the memory strategy IState objects are stored in the user session (HttpSession) while in the encoded and hash strategies these objects are stored in the client.
| Constructor Summary | |
|---|---|
AbstractDataComposer()
|
|
| Method Summary | |
|---|---|
void |
beginRequest()
It is called by each request or form of the html page sent back by the server. |
void |
beginRequest(java.lang.String action)
It is called by each request or form of the html page returned by the server, as long as the destiny of the request is an action. |
java.lang.String |
getAction()
|
IApplication |
getApplication()
|
java.lang.String |
getPageId()
Obtains the page identifier that contains the request or form in process |
ISession |
getSession()
|
void |
init(ISession session,
IApplication application)
Initializes IdataComposer with the user session and the application context |
void |
initPageId()
Obtains a new unique identifier for the page |
void |
setAction(java.lang.String action)
|
void |
setApplication(IApplication application)
|
void |
setSession(ISession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hdiv.dataComposer.IDataComposer |
|---|
addFlowId, compose, compose, compose, compose, compose, endPage, endRequest, getHDIVParameter, mergeParameters, startPage |
| Constructor Detail |
|---|
public AbstractDataComposer()
| Method Detail |
|---|
public void init(ISession session,
IApplication application)
init in interface IDataComposersession - Http session wrapperapplication - ServletContext wrapperpublic void beginRequest()
beginRequest in interface IDataComposerpublic void beginRequest(java.lang.String action)
beginRequest in interface IDataComposeraction - target namepublic java.lang.String getPageId()
public void initPageId()
public java.lang.String getAction()
public void setAction(java.lang.String action)
public ISession getSession()
getSession in interface IDataComposerpublic void setSession(ISession session)
setSession in interface IDataComposersession - The session to set.public IApplication getApplication()
getApplication in interface IDataComposerpublic void setApplication(IApplication application)
setApplication in interface IDataComposerapplication - The application to set.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||