Roo.data.DataProxy Roo.data.HttpProxy
Package: | Roo.data |
Defined In: | Roo/data/HttpProxy.js. |
Class: | HttpProxy |
Extends: | Roo.data.DataProxy |
Note that this class cannot be used to retrieve data from a domain other than the domain
from which the running page was served.
For cross-domain access to remote data, use an {link Roo.data.ScriptTagProxy}.
Be aware that to enable the browser to parse an XML document, the server must set
the Content-Type header in the HTTP response to "text/xml".
Options | Defined By | |
---|---|---|
autoAbort : Boolean
(Optional) Whether this request should abort any pending requests.
(Optional) Whether this request should abort any pending requests. (defaults to false)
|
Roo.data.HttpProxy | |
defaultHeaders : Object
(Optional) An object containing request headers which are added
to each request made by this object.
(Optional) An object containing request headers which are added
to each request made by this object. (defaults to undefined) |
Roo.data.HttpProxy | |
disableCaching : Boolean
(Optional) True to add a unique cache-buster param to GET requests.
(Optional) True to add a unique cache-buster param to GET requests. (defaults to true)
|
Roo.data.HttpProxy | |
extraParams : Object
(Optional) An object containing properties which are used as
extra parameters to each request made by this object.
(Optional) An object containing properties which are used as
extra parameters to each request made by this object. (defaults to undefined) |
Roo.data.HttpProxy | |
method : String
(Optional) The default HTTP method to be used for requests.
(Optional) The default HTTP method to be used for requests. (defaults to undefined; if not set but parms are present will use POST, otherwise GET)
|
Roo.data.HttpProxy | |
timeout : Number
(Optional) The timeout in milliseconds to be used for requests.
(Optional) The timeout in milliseconds to be used for requests. (defaults to 30000)
|
Roo.data.HttpProxy | |
url : String
(Optional) The default URL to be used for requests to the server.
(Optional) The default URL to be used for requests to the server. (defaults to undefined)
|
Roo.data.HttpProxy |
Method | Defined By | |
---|---|---|
new Roo.data.HttpProxy
(Object conn)
Create a new Roo.data.HttpProxy
Create a new Roo.data.HttpProxy
|
||
getConnection
()
:
Connection
Return the {link Roo.data.Connection} object being used by this Proxy.
Return the {link Roo.data.Connection} object being used by this Proxy.
|
Roo.data.HttpProxy | |
Load data from the configured {link Roo.data.Connection}, read the data object into
a block of Roo.data.Records using the passed {link Roo.data.DataReader} implementation, and process that block using the passed callback.
Load data from the configured {link Roo.data.Connection}, read the data object into
a block of Roo.data.Records using the passed {link Roo.data.DataReader} implementation, and process that block using the passed callback.
|
Roo.data.HttpProxy |
Event | Defined By | |
---|---|---|
Roo.data.DataProxy | ||
Roo.data.DataProxy | ||
Roo.data.DataProxy |