@qooxdoo/framework 7.0.0-beta.3 → 7.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/Manifest.json +1 -1
- package/README.md +9 -3
- package/lib/compiler/compile-info.json +60 -58
- package/lib/compiler/index.js +3242 -1883
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
- package/lib/resource/qx/tool/loadsass.js +6 -4
- package/lib/resource/qx/tool/schema/compile-1-0-0.json +6 -11
- package/package.json +17 -3
- package/source/class/qx/Bootstrap.js +22 -1
- package/source/class/qx/bom/Blocker.js +2 -1
- package/source/class/qx/core/Environment.js +3 -12
- package/source/class/qx/core/MProperty.js +1 -1
- package/source/class/qx/dev/unit/Sinon.js +1 -1
- package/source/class/qx/io/__init__.js +5 -3
- package/source/class/qx/io/exception/Cancel.js +34 -0
- package/source/class/qx/io/exception/Exception.js +38 -0
- package/source/class/qx/io/exception/Protocol.js +26 -0
- package/source/class/qx/io/exception/Transport.js +39 -0
- package/source/class/qx/io/exception/__init__.js +4 -0
- package/source/class/qx/io/graphql/Client.js +112 -0
- package/source/class/qx/io/graphql/__init__.js +9 -0
- package/source/class/qx/io/graphql/protocol/Message.js +65 -0
- package/source/class/qx/io/graphql/protocol/Request.js +95 -0
- package/source/class/qx/io/graphql/protocol/Response.js +61 -0
- package/source/class/qx/io/graphql/protocol/__init__.js +6 -0
- package/source/class/qx/io/jsonrpc/Client.js +323 -0
- package/source/class/qx/io/jsonrpc/__init__.js +15 -0
- package/source/class/qx/io/jsonrpc/protocol/Batch.js +97 -0
- package/source/class/qx/io/jsonrpc/protocol/Error.js +63 -0
- package/source/class/qx/io/jsonrpc/protocol/Message.js +48 -0
- package/source/class/qx/io/jsonrpc/protocol/Notification.js +45 -0
- package/source/class/qx/io/jsonrpc/protocol/Parser.js +81 -0
- package/source/class/qx/io/jsonrpc/protocol/Request.js +93 -0
- package/source/class/qx/io/jsonrpc/protocol/Result.js +48 -0
- package/source/class/qx/io/jsonrpc/protocol/__init__.js +5 -0
- package/source/class/qx/io/request/authentication/Bearer.js +52 -0
- package/source/class/qx/io/transport/AbstractClient.js +100 -0
- package/source/class/qx/io/transport/AbstractTransport.js +41 -0
- package/source/class/qx/io/transport/Fetch.js +95 -0
- package/source/class/qx/io/transport/ITransport.js +40 -0
- package/source/class/qx/io/transport/PostMessage.js +55 -0
- package/source/class/qx/io/transport/Websocket.js +97 -0
- package/source/class/qx/io/transport/Xhr.js +139 -0
- package/source/class/qx/io/transport/__init__.js +18 -0
- package/source/class/qx/test/core/Assert.js +1 -1
- package/source/class/qx/test/core/Environment.js +0 -3
- package/source/class/qx/test/io/MAssert.js +46 -0
- package/source/class/qx/test/io/graphql/Client.js +169 -0
- package/source/class/qx/test/io/graphql/ClientFetch.js +34 -0
- package/source/class/qx/test/io/graphql/Request.js +42 -0
- package/source/class/qx/test/io/jsonrpc/Client.js +267 -0
- package/source/class/qx/test/io/jsonrpc/Protocol.js +80 -0
- package/source/class/qx/test/io/transport/PostMessage.js +56 -0
- package/source/class/qx/test/io/transport/Websocket.js +63 -0
- package/source/class/qx/test/ui/embed/Iframe.js +1 -1
- package/source/class/qx/test/util/DateFormat.js +45 -6
- package/source/class/qx/tool/cli/Cli.js +1 -0
- package/source/class/qx/tool/cli/commands/Compile.js +13 -3
- package/source/class/qx/tool/cli/commands/Es6ify.js +93 -0
- package/source/class/qx/tool/cli/commands/package/Install.js +1 -1
- package/source/class/qx/tool/cli/commands/package/Publish.js +14 -0
- package/source/class/qx/tool/compiler/ClassFile.js +67 -27
- package/source/class/qx/tool/compiler/Es6ify.js +368 -0
- package/source/class/qx/tool/compiler/makers/AppMaker.js +2 -1
- package/source/class/qx/tool/compiler/targets/Target.js +57 -47
- package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +25 -18
- package/source/class/qx/tool/compiler/targets/meta/BootJs.js +16 -16
- package/source/class/qx/tool/compiler/targets/meta/PolyfillJs.js +11 -3
- package/source/class/qx/tool/compiler/targets/meta/Uglify.js +10 -10
- package/source/class/qx/ui/core/Widget.js +70 -0
- package/source/class/qx/ui/decoration/MLinearBackgroundGradient.js +2 -1
- package/source/class/qx/ui/form/ComboBox.js +8 -3
- package/source/class/qx/ui/form/DateField.js +16 -1
- package/source/class/qx/ui/form/MenuButton.js +8 -4
- package/source/class/qx/ui/form/SelectBox.js +8 -3
- package/source/class/qx/ui/menu/AbstractButton.js +12 -8
- package/source/class/qx/ui/menu/Menu.js +18 -8
- package/source/class/qx/ui/table/pane/Model.js +10 -4
- package/source/class/qx/ui/window/Window.js +8 -0
- package/source/class/qx/util/format/DateFormat.js +44 -17
- package/source/resource/qx/tool/loadsass.js +6 -4
- package/source/resource/qx/tool/schema/compile-1-0-0.json +6 -11
- package/source/translation/hr.po +297 -0
- package/lib/resource/qx/static/blank.gif +0 -0
- package/source/class/qx/io/remote/Exchange.js +0 -1063
- package/source/class/qx/io/remote/Request.js +0 -1021
- package/source/class/qx/io/remote/RequestQueue.js +0 -521
- package/source/class/qx/io/remote/Response.js +0 -137
- package/source/class/qx/io/remote/Rpc.js +0 -1075
- package/source/class/qx/io/remote/RpcError.js +0 -198
- package/source/class/qx/io/remote/__init__.js +0 -88
- package/source/class/qx/io/remote/transport/Abstract.js +0 -513
- package/source/class/qx/io/remote/transport/Iframe.js +0 -652
- package/source/class/qx/io/remote/transport/Script.js +0 -475
- package/source/class/qx/io/remote/transport/XmlHttp.js +0 -1019
- package/source/class/qx/io/remote/transport/__init__.js +0 -3
- package/source/class/qx/test/io/remote/AbstractRequest.js +0 -150
- package/source/class/qx/test/io/remote/RequestIframe.js +0 -105
- package/source/class/qx/test/io/remote/RequestXhr.js +0 -151
- package/source/class/qx/test/io/remote/Rpc.js +0 -205
- package/source/class/qx/test/io/remote/__init__.js +0 -4
- package/source/class/qx/test/io/remote/transport/Iframe.js +0 -67
- package/source/class/qx/test/io/remote/transport/XmlHttp.js +0 -133
- package/source/class/qx/test/io/remote/transport/__init__.js +0 -4
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
/* ************************************************************************
|
|
2
|
-
|
|
3
|
-
qooxdoo - the new era of web development
|
|
4
|
-
|
|
5
|
-
http://qooxdoo.org
|
|
6
|
-
|
|
7
|
-
Copyright:
|
|
8
|
-
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
|
|
9
|
-
|
|
10
|
-
License:
|
|
11
|
-
MIT: https://opensource.org/licenses/MIT
|
|
12
|
-
See the LICENSE file in the project's top-level directory for details.
|
|
13
|
-
|
|
14
|
-
Authors:
|
|
15
|
-
* Sebastian Werner (wpbasti)
|
|
16
|
-
* Andreas Ecker (ecker)
|
|
17
|
-
|
|
18
|
-
************************************************************************ */
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Abstract for all transport implementations
|
|
22
|
-
*/
|
|
23
|
-
qx.Class.define("qx.io.remote.transport.Abstract",
|
|
24
|
-
{
|
|
25
|
-
type : "abstract",
|
|
26
|
-
extend : qx.core.Object,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
*****************************************************************************
|
|
33
|
-
CONSTRUCTOR
|
|
34
|
-
*****************************************************************************
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
construct : function()
|
|
38
|
-
{
|
|
39
|
-
this.base(arguments);
|
|
40
|
-
|
|
41
|
-
this.setRequestHeaders({});
|
|
42
|
-
this.setParameters({});
|
|
43
|
-
this.setFormFields({});
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
*****************************************************************************
|
|
51
|
-
EVENTS
|
|
52
|
-
*****************************************************************************
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
events : {
|
|
56
|
-
/** Event when a request is created */
|
|
57
|
-
"created" : "qx.event.type.Event",
|
|
58
|
-
|
|
59
|
-
/** Event when a request is configured */
|
|
60
|
-
"configured" : "qx.event.type.Event",
|
|
61
|
-
|
|
62
|
-
/** Event when a request is send */
|
|
63
|
-
"sending" : "qx.event.type.Event",
|
|
64
|
-
|
|
65
|
-
/** Event when a request is received */
|
|
66
|
-
"receiving" : "qx.event.type.Event",
|
|
67
|
-
|
|
68
|
-
/** Event when a request is completed */
|
|
69
|
-
"completed" : "qx.event.type.Event",
|
|
70
|
-
|
|
71
|
-
/** Event when a request is aborted */
|
|
72
|
-
"aborted" : "qx.event.type.Event",
|
|
73
|
-
|
|
74
|
-
/** Event when a request has failed */
|
|
75
|
-
"failed" : "qx.event.type.Event",
|
|
76
|
-
|
|
77
|
-
/** Event when a request has timed out */
|
|
78
|
-
"timeout" : "qx.event.type.Event"
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/*
|
|
84
|
-
*****************************************************************************
|
|
85
|
-
PROPERTIES
|
|
86
|
-
*****************************************************************************
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
properties :
|
|
90
|
-
{
|
|
91
|
-
/** Target url to issue the request to */
|
|
92
|
-
url :
|
|
93
|
-
{
|
|
94
|
-
check : "String",
|
|
95
|
-
nullable : true
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/** Determines what type of request to issue */
|
|
100
|
-
method :
|
|
101
|
-
{
|
|
102
|
-
check : "String",
|
|
103
|
-
nullable : true,
|
|
104
|
-
init : "GET"
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/** Set the request to asynchronous */
|
|
109
|
-
asynchronous :
|
|
110
|
-
{
|
|
111
|
-
check : "Boolean",
|
|
112
|
-
nullable : true,
|
|
113
|
-
init : true
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
/** Set the data to be sent via this request */
|
|
118
|
-
data :
|
|
119
|
-
{
|
|
120
|
-
check : "String",
|
|
121
|
-
nullable : true
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/** Username to use for HTTP authentication */
|
|
126
|
-
username :
|
|
127
|
-
{
|
|
128
|
-
check : "String",
|
|
129
|
-
nullable : true
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/** Password to use for HTTP authentication */
|
|
134
|
-
password :
|
|
135
|
-
{
|
|
136
|
-
check : "String",
|
|
137
|
-
nullable : true
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/** The state of the current request */
|
|
142
|
-
state :
|
|
143
|
-
{
|
|
144
|
-
check : [ "created", "configured", "sending", "receiving", "completed", "aborted", "timeout", "failed" ],
|
|
145
|
-
init : "created",
|
|
146
|
-
event : "changeState",
|
|
147
|
-
apply : "_applyState"
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
/** Request headers */
|
|
152
|
-
requestHeaders :
|
|
153
|
-
{
|
|
154
|
-
check : "Object",
|
|
155
|
-
nullable : true
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
/** Request parameters to send. */
|
|
160
|
-
parameters :
|
|
161
|
-
{
|
|
162
|
-
check : "Object",
|
|
163
|
-
nullable : true
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/** Request form fields to send. */
|
|
168
|
-
formFields :
|
|
169
|
-
{
|
|
170
|
-
check : "Object",
|
|
171
|
-
nullable : true
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
/** Response Type */
|
|
176
|
-
responseType :
|
|
177
|
-
{
|
|
178
|
-
check : "String",
|
|
179
|
-
nullable : true
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
/** Use Basic HTTP Authentication */
|
|
184
|
-
useBasicHttpAuth :
|
|
185
|
-
{
|
|
186
|
-
check : "Boolean",
|
|
187
|
-
nullable : true
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/*
|
|
195
|
-
*****************************************************************************
|
|
196
|
-
MEMBERS
|
|
197
|
-
*****************************************************************************
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
members :
|
|
201
|
-
{
|
|
202
|
-
/*
|
|
203
|
-
---------------------------------------------------------------------------
|
|
204
|
-
USER METHODS
|
|
205
|
-
---------------------------------------------------------------------------
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Sending a request.
|
|
210
|
-
*
|
|
211
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
212
|
-
* implement it.
|
|
213
|
-
*
|
|
214
|
-
* @abstract
|
|
215
|
-
* @throws {Error} the abstract function warning.
|
|
216
|
-
*/
|
|
217
|
-
send : function() {
|
|
218
|
-
throw new Error("send is abstract");
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Force the transport into the aborted state ("aborted").
|
|
224
|
-
*
|
|
225
|
-
* Listeners of the "aborted" signal are notified about the event.
|
|
226
|
-
*
|
|
227
|
-
*/
|
|
228
|
-
abort : function()
|
|
229
|
-
{
|
|
230
|
-
if (qx.core.Environment.get("qx.debug"))
|
|
231
|
-
{
|
|
232
|
-
if (qx.core.Environment.get("qx.debug.io.remote")) {
|
|
233
|
-
this.warn("Aborting...");
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
this.setState("aborted");
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Force the transport into the timeout state ("timeout").
|
|
243
|
-
*
|
|
244
|
-
* Listeners of the "timeout" signal are notified about the event.
|
|
245
|
-
*
|
|
246
|
-
*/
|
|
247
|
-
timeout : function()
|
|
248
|
-
{
|
|
249
|
-
if (qx.core.Environment.get("qx.debug"))
|
|
250
|
-
{
|
|
251
|
-
if (qx.core.Environment.get("qx.debug.io.remote")) {
|
|
252
|
-
this.warn("Timeout...");
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
this.setState("timeout");
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Force the transport into the failed state ("failed").
|
|
262
|
-
*
|
|
263
|
-
* Listeners of the "failed" signal are notified about the event.
|
|
264
|
-
*
|
|
265
|
-
*/
|
|
266
|
-
failed : function()
|
|
267
|
-
{
|
|
268
|
-
if (qx.core.Environment.get("qx.debug"))
|
|
269
|
-
{
|
|
270
|
-
if (qx.core.Environment.get("qx.debug.io.remote")) {
|
|
271
|
-
this.warn("Failed...");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
this.setState("failed");
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
/*
|
|
282
|
-
---------------------------------------------------------------------------
|
|
283
|
-
REQUEST HEADER SUPPORT
|
|
284
|
-
---------------------------------------------------------------------------
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Add a request header to this transports qx.io.remote.Request.
|
|
289
|
-
*
|
|
290
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
291
|
-
* implement it.
|
|
292
|
-
*
|
|
293
|
-
* @abstract
|
|
294
|
-
* @param vLabel {String} Request header name
|
|
295
|
-
* @param vValue {var} Value for the header
|
|
296
|
-
* @throws {Error} the abstract function warning.
|
|
297
|
-
*/
|
|
298
|
-
setRequestHeader : function(vLabel, vValue) {
|
|
299
|
-
throw new Error("setRequestHeader is abstract");
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/*
|
|
306
|
-
---------------------------------------------------------------------------
|
|
307
|
-
RESPONSE HEADER SUPPORT
|
|
308
|
-
---------------------------------------------------------------------------
|
|
309
|
-
*/
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Returns the request header of the request.
|
|
313
|
-
*
|
|
314
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
315
|
-
* implement it.
|
|
316
|
-
*
|
|
317
|
-
* @abstract
|
|
318
|
-
* @param vLabel {String} Response header name
|
|
319
|
-
* @return {Object}
|
|
320
|
-
* @throws {Error} the abstract function warning.
|
|
321
|
-
*/
|
|
322
|
-
getResponseHeader : function(vLabel) {
|
|
323
|
-
throw new Error("getResponseHeader is abstract");
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Provides an hash of all response headers.
|
|
329
|
-
*
|
|
330
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
331
|
-
* implement it.
|
|
332
|
-
*
|
|
333
|
-
* @abstract
|
|
334
|
-
* @return {Object}
|
|
335
|
-
* @throws {Error} the abstract function warning.
|
|
336
|
-
*/
|
|
337
|
-
getResponseHeaders : function() {
|
|
338
|
-
throw new Error("getResponseHeaders is abstract");
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
/*
|
|
345
|
-
---------------------------------------------------------------------------
|
|
346
|
-
STATUS SUPPORT
|
|
347
|
-
---------------------------------------------------------------------------
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Returns the current status code of the request if available or -1 if not.
|
|
352
|
-
*
|
|
353
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
354
|
-
* implement it.
|
|
355
|
-
*
|
|
356
|
-
* @abstract
|
|
357
|
-
* @return {Integer}
|
|
358
|
-
* @throws {Error} the abstract function warning.
|
|
359
|
-
*/
|
|
360
|
-
getStatusCode : function() {
|
|
361
|
-
throw new Error("getStatusCode is abstract");
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Provides the status text for the current request if available and null otherwise.
|
|
367
|
-
*
|
|
368
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
369
|
-
* implement it.
|
|
370
|
-
*
|
|
371
|
-
* @abstract
|
|
372
|
-
* @return {String}
|
|
373
|
-
* @throws {Error} the abstract function warning.
|
|
374
|
-
*/
|
|
375
|
-
getStatusText : function() {
|
|
376
|
-
throw new Error("getStatusText is abstract");
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
/*
|
|
383
|
-
---------------------------------------------------------------------------
|
|
384
|
-
RESPONSE DATA SUPPORT
|
|
385
|
-
---------------------------------------------------------------------------
|
|
386
|
-
*/
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Provides the response text from the request when available and null otherwise.
|
|
390
|
-
* By passing true as the "partial" parameter of this method, incomplete data will
|
|
391
|
-
* be made available to the caller.
|
|
392
|
-
*
|
|
393
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
394
|
-
* implement it.
|
|
395
|
-
*
|
|
396
|
-
* @abstract
|
|
397
|
-
* @return {String}
|
|
398
|
-
* @throws {Error} the abstract function warning.
|
|
399
|
-
*/
|
|
400
|
-
getResponseText : function() {
|
|
401
|
-
throw new Error("getResponseText is abstract");
|
|
402
|
-
},
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Provides the XML provided by the response if any and null otherwise.
|
|
407
|
-
* By passing true as the "partial" parameter of this method, incomplete data will
|
|
408
|
-
* be made available to the caller.
|
|
409
|
-
*
|
|
410
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
411
|
-
* implement it.
|
|
412
|
-
*
|
|
413
|
-
* @abstract
|
|
414
|
-
* @return {Object}
|
|
415
|
-
* @throws {Error} the abstract function warning.
|
|
416
|
-
*/
|
|
417
|
-
getResponseXml : function() {
|
|
418
|
-
throw new Error("getResponseXml is abstract");
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Returns the length of the content as fetched thus far.
|
|
424
|
-
*
|
|
425
|
-
* This method is virtual and concrete subclasses are supposed to
|
|
426
|
-
* implement it.
|
|
427
|
-
*
|
|
428
|
-
* @abstract
|
|
429
|
-
* @return {Integer}
|
|
430
|
-
* @throws {Error} the abstract function warning.
|
|
431
|
-
*/
|
|
432
|
-
getFetchedLength : function() {
|
|
433
|
-
throw new Error("getFetchedLength is abstract");
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
/*
|
|
440
|
-
---------------------------------------------------------------------------
|
|
441
|
-
APPLY ROUTINES
|
|
442
|
-
---------------------------------------------------------------------------
|
|
443
|
-
*/
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Apply method for "state" property. For each state value a corresponding
|
|
447
|
-
* event is fired to inform the listeners.
|
|
448
|
-
*
|
|
449
|
-
* @param value {var} Current value
|
|
450
|
-
* @param old {var} Previous value
|
|
451
|
-
*/
|
|
452
|
-
_applyState : function(value, old)
|
|
453
|
-
{
|
|
454
|
-
if (qx.core.Environment.get("qx.debug"))
|
|
455
|
-
{
|
|
456
|
-
if (qx.core.Environment.get("qx.debug.io.remote")) {
|
|
457
|
-
this.debug("State: " + value);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
switch(value)
|
|
462
|
-
{
|
|
463
|
-
case "created":
|
|
464
|
-
this.fireEvent("created");
|
|
465
|
-
break;
|
|
466
|
-
|
|
467
|
-
case "configured":
|
|
468
|
-
this.fireEvent("configured");
|
|
469
|
-
break;
|
|
470
|
-
|
|
471
|
-
case "sending":
|
|
472
|
-
this.fireEvent("sending");
|
|
473
|
-
break;
|
|
474
|
-
|
|
475
|
-
case "receiving":
|
|
476
|
-
this.fireEvent("receiving");
|
|
477
|
-
break;
|
|
478
|
-
|
|
479
|
-
case "completed":
|
|
480
|
-
this.fireEvent("completed");
|
|
481
|
-
break;
|
|
482
|
-
|
|
483
|
-
case "aborted":
|
|
484
|
-
this.fireEvent("aborted");
|
|
485
|
-
break;
|
|
486
|
-
|
|
487
|
-
case "failed":
|
|
488
|
-
this.fireEvent("failed");
|
|
489
|
-
break;
|
|
490
|
-
|
|
491
|
-
case "timeout":
|
|
492
|
-
this.fireEvent("timeout");
|
|
493
|
-
break;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return true;
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
/*
|
|
502
|
-
*****************************************************************************
|
|
503
|
-
DESTRUCTOR
|
|
504
|
-
*****************************************************************************
|
|
505
|
-
*/
|
|
506
|
-
|
|
507
|
-
destruct : function()
|
|
508
|
-
{
|
|
509
|
-
this.setRequestHeaders(null);
|
|
510
|
-
this.setParameters(null);
|
|
511
|
-
this.setFormFields(null);
|
|
512
|
-
}
|
|
513
|
-
});
|