r21325: delete children in reverse order since the array is manipulated during the...
[samba.git] / webapps / qooxdoo-0.6.3-sdk / frontend / framework / source / class / qx / io / remote / Response.js
1 /* ************************************************************************
2
3    qooxdoo - the new era of web development
4
5    http://qooxdoo.org
6
7    Copyright:
8      2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
9
10    License:
11      LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
12
13    Authors:
14      * Sebastian Werner (wpbasti)
15      * Andreas Ecker (ecker)
16
17 ************************************************************************ */
18
19 /* ************************************************************************
20
21 #module(io_remote)
22
23 ************************************************************************ */
24
25 qx.OO.defineClass("qx.io.remote.Response", qx.core.Target,
26 function() {
27   qx.core.Target.call(this);
28 });
29
30
31
32
33 /*
34 ---------------------------------------------------------------------------
35   PROPERTIES
36 ---------------------------------------------------------------------------
37 */
38
39 qx.OO.addProperty({ name : "state", type : "number" });
40 /*!
41   Status code of the response.
42 */
43 qx.OO.addProperty({ name : "statusCode", type : "number" });
44 qx.OO.addProperty({ name : "content" });
45 qx.OO.addProperty({ name : "responseHeaders", type : "object" });
46
47
48
49
50
51
52
53 /*
54 ---------------------------------------------------------------------------
55   MODIFIERS
56 ---------------------------------------------------------------------------
57 */
58
59 /*
60 qx.Proto._modifyResponseHeaders = function(propValue, propOldValue, propData)
61 {
62   for (vKey in propValue) {
63     this.debug("R-Header: " + vKey + "=" + propValue[vKey]);
64   }
65
66   return true;
67 }
68 */
69
70
71
72
73
74
75
76 /*
77 ---------------------------------------------------------------------------
78   USER METHODS
79 ---------------------------------------------------------------------------
80 */
81
82 qx.Proto.getResponseHeader = function(vHeader)
83 {
84   var vAll = this.getResponseHeaders();
85   if (vAll) {
86     return vAll[vHeader] || null;
87   }
88
89   return null;
90 }
91
92
93
94
95
96
97 /*
98 ---------------------------------------------------------------------------
99   DISPOSER
100 ---------------------------------------------------------------------------
101 */
102
103 qx.Proto.dispose = function()
104 {
105   if (this.getDisposed()) {
106     return;
107   }
108
109   return qx.core.Target.prototype.dispose.call(this);
110 }