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.
See Also:
  • 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

    • getSecid

      public String getSecid()
      Get the SECID to be passed to the client side.
    • checkSecid

      public void checkSecid(String secid)
      Checks a SECID coming from the client against its server side value.
    • createNextSecid

      public void createNextSecid()
      Creates a new SECID to be sent to the client.
    • toString

      public final String toString()
      Overrides:
      toString in class Object