4.10.2Object CookieBinder

Binder retreiving values from the HTTP cookies.

Object CookieBinder

Note: Unless you know what you're doing, you should use the InputBinder object instead.

This binder initialize the variable with a part of the incoming HTTP header storing a cookie named after the bound variable.

If the service has an instance value, then the variable serched among the input elements is prefixed with a "_" string, where is the name of the service instance.

For example, in the following service:


   class Test(i) from Service(i)
      var = ServiceVar( CookieBinder )
   end

var will assume the value of the input variable named "var", if present. If the service is created with an instance name, for example "mytest", then the variable searched will be "mytest_var".

If the variable is not found in the input scope (in this case, cookies), the ServiceVar.value property will be nil, and the value of ServiceVar.isSet will be false.

See also: InputBinder.

Made with http://www.falconpl.org