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.

Development Note

Datasources represent queryable server-side Datasources, capable of creating or changing Datasets. Datasources are type-specific, i.e. http, jdbc or soap. Datasources manage connections to the server, handle timeouts and send ondata and onerror events. They have no public methods.

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 (4)

doRequest()
<method name="doRequest" args="forset" />
private function doRequest(forset);
isProxied()
<method name="isProxied" args="forset" />
private function isProxied(forset) : boolean;
Compute the boolean value for 'proxied', using inheritance if needed
processRawData()
<method name="processRawData" args="forset, d" />
private function processRawData(forset, d);
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=" doRequest " args="forset" />
  <method name=" isProxied " args="forset" />
  <method name=" processRawData " args="forset, d" />
  <method name=" setQueryType " args="d" />
</class>

JavaScript Synopsis

public LzHTTPDatasource extends  LzDatasource  {
  public var reqtype  = GET;
  prototype private function doRequest (forset);
  prototype private function isProxied (forset) : boolean;
  prototype private function processRawData (forset, d);
  prototype public function setQueryType (d : String);
}