4.10.3Object GetBinder

Binder retreiving values from the Request GET fields.

Object GetBinder

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 query matching the variable name.

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( GetBinder )
   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 GET HTTP fields), 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