Name
datasource (LzHTTPDatasource) — A way of representing a server-side HTTP datasource.
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.
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
">
</class>
JavaScript Synopsis
public
LzHTTPDatasource extends
LzDatasource
{
prototype private function
doRequest
(
forset);
prototype private function
isProxied
(
forset) :
boolean;
}