Name

datasource (LzHTTPDatasource) — A way of representing a server-side HTTP datasource.

Synopsis

LZX: datasource
JavaScript: LzHTTPDatasource
Type: Class
Access: public
Topic: LFC.Data
Declared in: WEB-INF/lps/lfc/data/LzHTTPDatasource.lzs

Description

The datasource tag is an optional way of representing a server side datasource. The datasource's parameters can specify ways in which the client will make backend requests. Also, more than one dataset can share a datasource, and the datasource can be used to control session related information. Finally, since HTTP is the default transport for datasets, a dataset that doesn't appear inside a datasource will create an anonymous one by default.

Superclass Chain

node (LzNode) » datasource (LzDatasource) » datasource (LzHTTPDatasource)

Known Subclasses

Known Direct Subclasses: connection (LzConnection) (as2)

Details

Properties (1)

reqtype
<attribute name="reqtype" />
public var reqtype = GET;

Methods (1)

setQueryType()
<method name="setQueryType" args="d" />
public function setQueryType(d : String);
Sets the query type of the datasource to "GET" or "POST". Note that this controls how the LPS server makes a request of the backend, as well as how the client communicates with the LPS

LZX Synopsis

<class name="LzHTTPDatasource" extends=" LzDatasource ">
  <attribute name=" reqtype " />
  <method name=" setQueryType " args="d" />
</class>

JavaScript Synopsis

public LzHTTPDatasource extends  LzDatasource  {
  public var reqtype  = GET;
  prototype public function setQueryType (d : String);
}