Class CLIENTSECIDBinding
java.lang.Object
org.eclnt.jsfserver.elements.impl.CLIENTSECIDBinding
- All Implemented Interfaces:
Serializable
,IValueByToString
,IDynamicContentBindingObject
public class CLIENTSECIDBinding
extends Object
implements Serializable, IValueByToString, IDynamicContentBindingObject
Server side counter part of CLIENTSECID component.
Per request processing the CLIENTSECIDComponent validates the SECID that is passed from the client against the current SECID. During the rendering phase it picks a new SECID to be sent to its client side component.
Per request processing the CLIENTSECIDComponent validates the SECID that is passed from the client against the current SECID. During the rendering phase it picks a new SECID to be sent to its client side component.
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCLIENTSECIDBinding
(int tolerance) When having sent a SECID to the client side then the subsequent request is checked to contain this SECID. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSecid
(String secid) Checks a SECID coming from the client against its server side value.void
Creates a new SECID to be sent to the client.getSecid()
Get the SECID to be passed to the client side.final String
toString()
-
Field Details
-
m_lastSecidsBufferLength
protected int m_lastSecidsBufferLength
-
-
Constructor Details
-
CLIENTSECIDBinding
public CLIENTSECIDBinding() -
CLIENTSECIDBinding
public CLIENTSECIDBinding(int tolerance) When having sent a SECID to the client side then the subsequent request is checked to contain this SECID. If the values do not match then some error is thrown. - In order to avoid scenarios in which the client sends requests faster than the server responds (e.g. double click: first request after click, second after second click) there is a certain tolerance: the request's SECID is compared to be contained in the last "n" responded SECID values. This tolerance can be set through this constructor.
-
-
Method Details