sync
[roojs1] / docs / symbols / Roo.data.HttpProxy.json
1 {
2   "name" : "Roo.data.HttpProxy",
3   "augments" : [
4     "Roo.data.DataProxy"
5   ],
6   "childClasses" : [],
7   "desc" : "An implementation of {@link Roo.data.DataProxy} that reads a data object from an {@link Roo.data.Connection} object\nconfigured to reference a certain URL.<br><br>\n<p>\n<em>Note that this class cannot be used to retrieve data from a domain other than the domain\nfrom which the running page was served.<br><br>\n<p>\nFor cross-domain access to remote data, use an {@link Roo.data.ScriptTagProxy}.</em><br><br>\n<p>\nBe aware that to enable the browser to parse an XML document, the server must set\nthe Content-Type header in the HTTP response to \"text/xml\".",
8   "isSingleton" : false,
9   "isStatic" : false,
10   "isBuiltin" : false,
11   "memberOf" : "HttpProxy",
12   "example" : "",
13   "deprecated" : "",
14   "since" : "",
15   "see" : "",
16   "params" : [
17     {
18       "name" : "conn",
19       "type" : "Object",
20       "desc" : "Connection config options to add to each request (e.g. {url: 'foo.php'} or\nan {@link Roo.data.Connection} object.  If a Connection config is passed, the singleton {@link Roo.Ajax} object\nwill be used to make the request.",
21       "isOptional" : false
22     }
23   ],
24   "returns" : [],
25   "throws" : "",
26   "requires" : "",
27   "config" : [
28     {
29       "name" : "method",
30       "type" : "String",
31       "desc" : "(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)",
32       "memberOf" : ""
33     },
34     {
35       "name" : "timeout",
36       "type" : "Number",
37       "desc" : "(Optional) The timeout in milliseconds to be used for requests. (defaults to 30000)",
38       "memberOf" : ""
39     },
40     {
41       "name" : "autoAbort",
42       "type" : "Boolean",
43       "desc" : "(Optional) Whether this request should abort any pending requests. (defaults to false)",
44       "memberOf" : ""
45     },
46     {
47       "name" : "url",
48       "type" : "String",
49       "desc" : "(Optional) The default URL to be used for requests to the server. (defaults to undefined)",
50       "memberOf" : ""
51     },
52     {
53       "name" : "extraParams",
54       "type" : "Object",
55       "desc" : "(Optional) An object containing properties which are used as\nextra parameters to each request made by this object. (defaults to undefined)",
56       "memberOf" : ""
57     },
58     {
59       "name" : "disableCaching",
60       "type" : "Boolean",
61       "desc" : "(Optional) True to add a unique cache-buster param to GET requests. (defaults to true)",
62       "memberOf" : ""
63     },
64     {
65       "name" : "defaultHeaders",
66       "type" : "Object",
67       "desc" : "(Optional) An object containing request headers which are added\n to each request made by this object. (defaults to undefined)",
68       "memberOf" : ""
69     }
70   ],
71   "methods" : [
72     {
73       "name" : "getConnection",
74       "type" : "function",
75       "desc" : "Return the {@link Roo.data.Connection} object being used by this Proxy.",
76       "sig" : "()\n{\n\n}",
77       "static" : false,
78       "memberOf" : "",
79       "isStatic" : false,
80       "isConstructor" : false,
81       "isPrivate" : false,
82       "example" : "",
83       "deprecated" : "",
84       "since" : "",
85       "see" : "",
86       "exceptions" : "",
87       "requires" : "",
88       "params" : [],
89       "returns" : [
90         {
91           "name" : "",
92           "type" : "Connection",
93           "desc" : "The Connection object. This object may be used to subscribe to events on\na finer-grained basis than the DataProxy events."
94         }
95       ]
96     },
97     {
98       "name" : "load",
99       "type" : "function",
100       "desc" : "Load data from the configured {@link Roo.data.Connection}, read the data object into\na block of Roo.data.Records using the passed {@link Roo.data.DataReader} implementation, and\nprocess that block using the passed callback.",
101       "sig" : "(params, reader, callback, scope, arg)",
102       "static" : false,
103       "memberOf" : "",
104       "isStatic" : false,
105       "isConstructor" : false,
106       "isPrivate" : false,
107       "example" : "",
108       "deprecated" : "",
109       "since" : "",
110       "see" : "",
111       "exceptions" : "",
112       "requires" : "",
113       "params" : [
114         {
115           "name" : "params",
116           "type" : "Object",
117           "desc" : "An object containing properties which are to be used as HTTP parameters\nfor the request to the remote server.",
118           "isOptional" : false
119         },
120         {
121           "name" : "reader",
122           "type" : "Roo.data.DataReader",
123           "desc" : "The Reader object which converts the data\nobject into a block of Roo.data.Records.",
124           "isOptional" : false
125         },
126         {
127           "name" : "callback",
128           "type" : "Function",
129           "desc" : "The function into which to pass the block of Roo.data.Records.\nThe function must be passed <ul>\n<li>The Record block object</li>\n<li>The \"arg\" argument from the load function</li>\n<li>A boolean success indicator</li>\n</ul>",
130           "isOptional" : false
131         },
132         {
133           "name" : "scope",
134           "type" : "Object",
135           "desc" : "The scope in which to call the callback",
136           "isOptional" : false
137         },
138         {
139           "name" : "arg",
140           "type" : "Object",
141           "desc" : "An optional argument which is passed to the callback as its second parameter.",
142           "isOptional" : false
143         }
144       ],
145       "returns" : []
146     }
147   ],
148   "events" : [
149     {
150       "name" : "load",
151       "type" : "function",
152       "desc" : "Fires before the load method's callback is called.",
153       "sig" : "function (This, o, arg)\n{\n\n}",
154       "memberOf" : "Roo.data.DataProxy",
155       "example" : "",
156       "deprecated" : "",
157       "since" : "",
158       "see" : "",
159       "params" : [
160         {
161           "name" : "This",
162           "type" : "Object",
163           "desc" : "DataProxy object.",
164           "isOptional" : false
165         },
166         {
167           "name" : "o",
168           "type" : "Object",
169           "desc" : "The data object.",
170           "isOptional" : false
171         },
172         {
173           "name" : "arg",
174           "type" : "Object",
175           "desc" : "The callback argument object passed to the load function.",
176           "isOptional" : false
177         }
178       ],
179       "returns" : []
180     },
181     {
182       "name" : "beforeload",
183       "type" : "function",
184       "desc" : "Fires before a network request is made to retrieve a data object.",
185       "sig" : "function (This, params)\n{\n\n}",
186       "memberOf" : "Roo.data.DataProxy",
187       "example" : "",
188       "deprecated" : "",
189       "since" : "",
190       "see" : "",
191       "params" : [
192         {
193           "name" : "This",
194           "type" : "Object",
195           "desc" : "DataProxy object.",
196           "isOptional" : false
197         },
198         {
199           "name" : "params",
200           "type" : "Object",
201           "desc" : "The params parameter to the load function.",
202           "isOptional" : false
203         }
204       ],
205       "returns" : []
206     },
207     {
208       "name" : "loadexception",
209       "type" : "function",
210       "desc" : "Fires if an Exception occurs during data retrieval.",
211       "sig" : "function (This, o, arg, e)\n{\n\n}",
212       "memberOf" : "Roo.data.DataProxy",
213       "example" : "",
214       "deprecated" : "",
215       "since" : "",
216       "see" : "",
217       "params" : [
218         {
219           "name" : "This",
220           "type" : "Object",
221           "desc" : "DataProxy object.",
222           "isOptional" : false
223         },
224         {
225           "name" : "o",
226           "type" : "Object",
227           "desc" : "The data object.",
228           "isOptional" : false
229         },
230         {
231           "name" : "arg",
232           "type" : "Object",
233           "desc" : "The callback argument object passed to the load function.",
234           "isOptional" : false
235         },
236         {
237           "name" : "e",
238           "type" : "Object",
239           "desc" : "The Exception.",
240           "isOptional" : false
241         }
242       ],
243       "returns" : []
244     }
245   ]
246 }