HDIV API 2.0.4

org.hdiv.dataComposer
Class DataComposerCipher

java.lang.Object
  extended by org.hdiv.dataComposer.AbstractDataComposer
      extended by org.hdiv.dataComposer.DataComposerMemory
          extended by org.hdiv.dataComposer.DataComposerCipher
All Implemented Interfaces:
IDataComposer

public class DataComposerCipher
extends DataComposerMemory

It generates the states of each page storing them in the client. These states will be encoded to guarantee its integrity.

Non editable values are hidden to the client to guarantee confidentiality confidentiality.

Author:
Roberto Velasco, Gorka Vicente
See Also:
DataComposerMemory

Field Summary
 
Fields inherited from class org.hdiv.dataComposer.DataComposerMemory
DASH, lastParameter, page, requestCounter, state, statesStack
 
Constructor Summary
DataComposerCipher()
           
 
Method Summary
 void endPage()
          Only if the generated encoded state exceeds the maximun length allowed it will be necessary to store in session the object representing the current page.
 java.lang.String endRequest()
          It is called by each request or form existing in the page returned by the server.
 EncodingUtil getEncodingUtil()
           
 void setAllowedLength(int allowedLength)
           
 void setEncodingUtil(EncodingUtil encodingUtil)
           
 void startPage()
          It is called in the pre-processing stage of each user request assigning a new page identifier to the page.
 
Methods inherited from class org.hdiv.dataComposer.DataComposerMemory
addFlowId, beginRequest, beginRequest, compose, compose, compose, compose, compose, compose, compose, getHDIVParameter, getHdivStateSuffix, getPage, init, initTesting, mergeParameters, setConfidentiality, setHdivConfig, setPage, updateComposerState
 
Methods inherited from class org.hdiv.dataComposer.AbstractDataComposer
getAction, getApplication, getPageId, getSession, init, initPageId, setAction, setApplication, setSession
 
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
getApplication, getSession, init, setApplication, setSession
 

Constructor Detail

DataComposerCipher

public DataComposerCipher()
Method Detail

endRequest

public java.lang.String endRequest()
It is called by each request or form existing in the page returned by the server.

it generates an encoded string containing the current state.

If the size of the generated state exceeds the maximun length allowed allowedLength the Memory strategy will be used, adding the state of the request or form to the page page and returning an identifier composed by the page identifier and the state identifier as a result.

Specified by:
endRequest in interface IDataComposer
Overrides:
endRequest in class DataComposerMemory
Returns:
String with the encoded state. If the Memory strategy has been used, an identifier.

endPage

public void endPage()
Only if the generated encoded state exceeds the maximun length allowed it will be necessary to store in session the object representing the current page.

Specified by:
endPage in interface IDataComposer
Overrides:
endPage in class DataComposerMemory
See Also:
DataComposerMemory.endPage()

startPage

public void startPage()
Description copied from class: DataComposerMemory
It is called in the pre-processing stage of each user request assigning a new page identifier to the page.

Specified by:
startPage in interface IDataComposer
Overrides:
startPage in class DataComposerMemory

getEncodingUtil

public EncodingUtil getEncodingUtil()
Returns:
Returns the encoding util.

setEncodingUtil

public void setEncodingUtil(EncodingUtil encodingUtil)
Parameters:
encodingUtil - The encoding util to set.

setAllowedLength

public void setAllowedLength(int allowedLength)
Parameters:
allowedLength - The allowed length to set.

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.