@sap/async-xsjs 1.0.2

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.
Files changed (178) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +37 -0
  3. package/README.md +445 -0
  4. package/differences.md +162 -0
  5. package/docs/$.Application.html +262 -0
  6. package/docs/$.Session.html +674 -0
  7. package/docs/$.db.CallableStatement.html +2524 -0
  8. package/docs/$.db.Connection.html +511 -0
  9. package/docs/$.db.ParameterMetaData.html +805 -0
  10. package/docs/$.db.PreparedStatement.html +1796 -0
  11. package/docs/$.db.ResultSet.html +1308 -0
  12. package/docs/$.db.ResultSetMetaData.html +800 -0
  13. package/docs/$.db.SQLException.html +259 -0
  14. package/docs/$.db.html +773 -0
  15. package/docs/$.hdb.ColumnMetadata.html +438 -0
  16. package/docs/$.hdb.Connection.html +663 -0
  17. package/docs/$.hdb.ProcedureResult.html +280 -0
  18. package/docs/$.hdb.ResultSet.html +324 -0
  19. package/docs/$.hdb.ResultSetIterator.html +315 -0
  20. package/docs/$.hdb.ResultSetMetaData.html +259 -0
  21. package/docs/$.hdb.SQLException.html +259 -0
  22. package/docs/$.hdb.html +557 -0
  23. package/docs/$.html +471 -0
  24. package/docs/$.jobs.Job.html +783 -0
  25. package/docs/$.jobs.JobLog.html +380 -0
  26. package/docs/$.jobs.JobSchedules.html +852 -0
  27. package/docs/$.jobs.html +238 -0
  28. package/docs/$.net.Destination.html +304 -0
  29. package/docs/$.net.Mail.Part.html +510 -0
  30. package/docs/$.net.Mail.html +504 -0
  31. package/docs/$.net.SMTPConnection.html +347 -0
  32. package/docs/$.net.html +749 -0
  33. package/docs/$.net.http.Client.html +562 -0
  34. package/docs/$.net.http.Destination.html +237 -0
  35. package/docs/$.net.http.Request.html +567 -0
  36. package/docs/$.net.http.html +292 -0
  37. package/docs/$.security.AntiVirus.html +361 -0
  38. package/docs/$.security.Store.html +636 -0
  39. package/docs/$.security.crypto.html +414 -0
  40. package/docs/$.security.html +247 -0
  41. package/docs/$.security.x509.html +373 -0
  42. package/docs/$.text.analysis.Session.html +983 -0
  43. package/docs/$.text.analysis.html +242 -0
  44. package/docs/$.text.html +246 -0
  45. package/docs/$.text.mining.Session.html +2018 -0
  46. package/docs/$.text.mining.html +242 -0
  47. package/docs/$.trace.html +525 -0
  48. package/docs/$.util.SAXParser.html +955 -0
  49. package/docs/$.util.Zip.html +474 -0
  50. package/docs/$.util.codec.html +414 -0
  51. package/docs/$.util.compression.html +357 -0
  52. package/docs/$.util.html +325 -0
  53. package/docs/$.util.sql.html +290 -0
  54. package/docs/$.web.Body.html +333 -0
  55. package/docs/$.web.EntityList.html +296 -0
  56. package/docs/$.web.TupelList.html +496 -0
  57. package/docs/$.web.WebEntityRequest.html +393 -0
  58. package/docs/$.web.WebEntityResponse.html +392 -0
  59. package/docs/$.web.WebRequest.html +560 -0
  60. package/docs/$.web.WebResponse.html +609 -0
  61. package/docs/$.web.html +246 -0
  62. package/docs/Copyright-SAP.html +39 -0
  63. package/docs/Disclaimer-SAP.html +55 -0
  64. package/docs/index.html +232 -0
  65. package/docs/styles/jsdoc-default.css +382 -0
  66. package/lib/AppConfig.js +36 -0
  67. package/lib/AuditLogger.js +41 -0
  68. package/lib/cacert.js +26 -0
  69. package/lib/ctypes.js +153 -0
  70. package/lib/destinations/dest-provider.js +57 -0
  71. package/lib/index.js +235 -0
  72. package/lib/jobs/Action.js +40 -0
  73. package/lib/jobs/Job.js +100 -0
  74. package/lib/jobs/JobManager.js +150 -0
  75. package/lib/jobs/JobsRuntime.js +133 -0
  76. package/lib/jobs/SqlScriptJobRunner.js +36 -0
  77. package/lib/jobs/XsjsJobRunner.js +78 -0
  78. package/lib/jobs/index.js +11 -0
  79. package/lib/logging.js +16 -0
  80. package/lib/middleware.js +125 -0
  81. package/lib/odata/ODataService.js +125 -0
  82. package/lib/odata/index.js +7 -0
  83. package/lib/odata/service-factory.js +26 -0
  84. package/lib/passport-noauth.js +17 -0
  85. package/lib/routes.js +115 -0
  86. package/lib/runtime.js +740 -0
  87. package/lib/sandbox.js +40 -0
  88. package/lib/utils/XsJsFunctionRunner.js +57 -0
  89. package/lib/utils/XsJsLibFunctionRunner.js +57 -0
  90. package/lib/utils/buffer-utils.js +77 -0
  91. package/lib/utils/compression-utils.js +14 -0
  92. package/lib/utils/date-utils.js +104 -0
  93. package/lib/utils/errors/HttpError.js +20 -0
  94. package/lib/utils/errors/wrap-app-error.js +18 -0
  95. package/lib/utils/index.js +17 -0
  96. package/lib/utils/xs-function-runner.js +51 -0
  97. package/lib/utils/xs-types.js +21 -0
  98. package/lib/utils/xspath.js +36 -0
  99. package/lib/utils/xsstack.js +28 -0
  100. package/lib/views/error.html +28 -0
  101. package/lib/xsjs/Application.js +28 -0
  102. package/lib/xsjs/Locale.js +53 -0
  103. package/lib/xsjs/Session.js +31 -0
  104. package/lib/xsjs/constants.js +71 -0
  105. package/lib/xsjs/db/common/DbBase.js +85 -0
  106. package/lib/xsjs/db/common/DbOptions.js +163 -0
  107. package/lib/xsjs/db/common/arguments-validation.js +102 -0
  108. package/lib/xsjs/db/common/connection.js +12 -0
  109. package/lib/xsjs/db/common/enums.js +93 -0
  110. package/lib/xsjs/db/common/execute-batch.js +38 -0
  111. package/lib/xsjs/db/common/parse-time.js +139 -0
  112. package/lib/xsjs/db/dbapi/CallableStatement.js +192 -0
  113. package/lib/xsjs/db/dbapi/Connection.js +78 -0
  114. package/lib/xsjs/db/dbapi/DB.js +39 -0
  115. package/lib/xsjs/db/dbapi/ParameterMetaData.js +118 -0
  116. package/lib/xsjs/db/dbapi/PreparedStatement.js +78 -0
  117. package/lib/xsjs/db/dbapi/ResultSet.js +220 -0
  118. package/lib/xsjs/db/dbapi/ResultSetMetaData.js +116 -0
  119. package/lib/xsjs/db/dbapi/Statement.js +514 -0
  120. package/lib/xsjs/db/dbapi/conversions.js +113 -0
  121. package/lib/xsjs/db/dbapi/fetch-rows.js +32 -0
  122. package/lib/xsjs/db/hdbapi/Connection.js +525 -0
  123. package/lib/xsjs/db/hdbapi/HDB.js +32 -0
  124. package/lib/xsjs/db/hdbapi/ResultSetIterator.js +40 -0
  125. package/lib/xsjs/db/hdbapi/convert.js +77 -0
  126. package/lib/xsjs/db/hdbapi/table-string-parser.js +52 -0
  127. package/lib/xsjs/db/index.js +4 -0
  128. package/lib/xsjs/index.js +13 -0
  129. package/lib/xsjs/jobs/Job.js +228 -0
  130. package/lib/xsjs/jobs/Jobs.js +11 -0
  131. package/lib/xsjs/jobs/Logs.js +127 -0
  132. package/lib/xsjs/jobs/Schedule.js +110 -0
  133. package/lib/xsjs/jobs/Schedules.js +108 -0
  134. package/lib/xsjs/net/Destination.js +43 -0
  135. package/lib/xsjs/net/http/Client.js +220 -0
  136. package/lib/xsjs/net/http/HTTP.js +72 -0
  137. package/lib/xsjs/net/index.js +5 -0
  138. package/lib/xsjs/net/smtp/Mail.js +38 -0
  139. package/lib/xsjs/net/smtp/Part.js +30 -0
  140. package/lib/xsjs/net/smtp/SMTPConnection.js +39 -0
  141. package/lib/xsjs/net/smtp/index.js +18 -0
  142. package/lib/xsjs/net/smtp/nodemailer-util.js +77 -0
  143. package/lib/xsjs/require.js +39 -0
  144. package/lib/xsjs/security/AntiVirus.js +31 -0
  145. package/lib/xsjs/security/Store.js +119 -0
  146. package/lib/xsjs/security/crypto.js +23 -0
  147. package/lib/xsjs/security/index.js +5 -0
  148. package/lib/xsjs/security/x509.js +12 -0
  149. package/lib/xsjs/text/analysis/Session.js +128 -0
  150. package/lib/xsjs/text/index.js +30 -0
  151. package/lib/xsjs/text/mining/Session.js +82 -0
  152. package/lib/xsjs/trace/trace.js +41 -0
  153. package/lib/xsjs/util/SAXParser.js +174 -0
  154. package/lib/xsjs/util/Zip.js +220 -0
  155. package/lib/xsjs/util/codec.js +33 -0
  156. package/lib/xsjs/util/compression.js +24 -0
  157. package/lib/xsjs/util/index.js +22 -0
  158. package/lib/xsjs/web/BasicWebEntity.js +41 -0
  159. package/lib/xsjs/web/EntityList.js +11 -0
  160. package/lib/xsjs/web/TupelLists/CookiesTupelList.js +47 -0
  161. package/lib/xsjs/web/TupelLists/HeadersTupelList.js +55 -0
  162. package/lib/xsjs/web/TupelLists/ParametersTupelList.js +83 -0
  163. package/lib/xsjs/web/TupelLists/TupelListBase.js +45 -0
  164. package/lib/xsjs/web/WebBody.js +135 -0
  165. package/lib/xsjs/web/WebEntityRequest.js +40 -0
  166. package/lib/xsjs/web/WebEntityResponse.js +26 -0
  167. package/lib/xsjs/web/WebRequest.js +209 -0
  168. package/lib/xsjs/web/WebResponse.js +183 -0
  169. package/lib/xsjs/web/index.js +4 -0
  170. package/lib/xsjs/web/utils/HeadersParser.js +53 -0
  171. package/lib/xsjs/web/utils/HttpRequestParser.js +93 -0
  172. package/lib/xsjs/web/utils/MultipartParser.js +163 -0
  173. package/lib/xsjs/web/utils/MultipartResponseBuilder.js +73 -0
  174. package/lib/xsjs/web/utils/SetCookieParser.js +32 -0
  175. package/lib/xsjslib/TextBundleWrapper.js +46 -0
  176. package/lib/xsjslib/index.js +11 -0
  177. package/npm-shrinkwrap.json +11540 -0
  178. package/package.json +84 -0
@@ -0,0 +1,333 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>JSDoc: Class: Body</title>
7
+ <script src="scripts/prettify/prettify.js"></script>
8
+ <script src="scripts/prettify/lang-css.js"></script>
9
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
10
+
11
+
12
+ <script src="scripts/launch-8b3c5ca29b9e.min.js"></script>
13
+ <script src="scripts/highlight.js"></script>
14
+ <link rel="canonical" href="$.web.Body.html">
15
+ </head>
16
+ <body>
17
+ <div id="main">
18
+ <h1 class="page-title">Class: Body</h1>
19
+ <section>
20
+ <header>
21
+ <h2>
22
+ <span class="ancestors"><a href="$.html">$</a><a href="$.web.html">.web</a>.</span>
23
+ Body
24
+ </h2>
25
+ <div class="class-description">$.web.Body represents the body of an HTTP request entity.</div>
26
+ </header>
27
+ <article>
28
+ <div class="container-overview">
29
+ <dt>
30
+ <h4 class="name" id="Body"><span class="type-signature"></span>new Body<span
31
+ class="signature">()</span><span class="type-signature"></span></h4>
32
+ </dt>
33
+ <dd>
34
+ <div class="description">
35
+ Provides access to the data included in the body of the HTTP request entity.
36
+ </div>
37
+ <dl class="details">
38
+ </dl>
39
+ </dd>
40
+ </div>
41
+ <h3 class="subsection-title">Methods</h3>
42
+ <dl>
43
+ <dt>
44
+ <h4 class="name" id="asArrayBuffer"><span class="type-signature"></span>asArrayBuffer<span
45
+ class="signature">()</span><span class="type-signature"> &rarr; {ArrayBuffer}</span></h4>
46
+ </dt>
47
+ <dd>
48
+ <div class="description">
49
+ Returns the content of an HTTP request entity body as ArrayBuffer.
50
+ </div>
51
+ <dl class="details">
52
+ </dl>
53
+ <h5>Returns:</h5>
54
+ <div class="param-desc">
55
+ The content of the HTTP request entity body as ArrayBuffer.
56
+ </div>
57
+ <dl>
58
+ <dt>
59
+ Type
60
+ </dt>
61
+ <dd>
62
+ <span class="param-type">ArrayBuffer</span>
63
+ </dd>
64
+ </dl>
65
+ </dd>
66
+ <dt>
67
+ <h4 class="name" id="asString"><span class="type-signature"></span>asString<span class="signature">()</span><span
68
+ class="type-signature"> &rarr; {string}</span></h4>
69
+ </dt>
70
+ <dd>
71
+ <div class="description">
72
+ Returns the content of an HTTP request entity body as a string.
73
+ </div>
74
+ <dl class="details">
75
+ </dl>
76
+ <h5>Returns:</h5>
77
+ <div class="param-desc">
78
+ The content of the HTTP request entity body as string.
79
+ </div>
80
+ <dl>
81
+ <dt>
82
+ Type
83
+ </dt>
84
+ <dd>
85
+ <span class="param-type">string</span>
86
+ </dd>
87
+ </dl>
88
+ </dd>
89
+ <dt>
90
+ <h4 class="name" id="asWebRequest"><span class="type-signature"></span>asWebRequest<span
91
+ class="signature">()</span><span class="type-signature"> &rarr; {<a
92
+ href="$.web.WebRequest.html">$.web.WebRequest</a>}</span></h4>
93
+ </dt>
94
+ <dd>
95
+ <div class="description">
96
+ Returns the content of an HTTP request entity body as WebRequest.
97
+ </div>
98
+ <dl class="details">
99
+ <dt class="tag-see">See:</dt>
100
+ <dd class="tag-see">
101
+ <ul>
102
+ <li>$.web.WebEntityResponse.setBody()</li>
103
+ </ul>
104
+ </dd>
105
+ </dl>
106
+ <h5>Throws:</h5>
107
+ <div class="param-desc">
108
+ Throws an error if the request entity body is not formatted according to the HTTP standard.
109
+ </div>
110
+ <h5>Returns:</h5>
111
+ <div class="param-desc">
112
+ The content of the HTTP request entity body as WebRequest.
113
+ </div>
114
+ <dl>
115
+ <dt>
116
+ Type
117
+ </dt>
118
+ <dd>
119
+ <span class="param-type"><a href="$.web.WebRequest.html">$.web.WebRequest</a></span>
120
+ </dd>
121
+ </dl>
122
+ <h5>Example</h5>
123
+ <pre class="prettyprint"><code>// Handling of multipart requests and responses in xsjs files:
124
+ var i;
125
+ var n = $.request.entities.length;
126
+ var client = new $.net.http.Client();
127
+ for (i = 0; i < n; ++i) {
128
+ var childRequest = $.request.entities[i].body.asWebRequest();
129
+ client.request(childRequest, childRequest.headers.get("Host") + childRequest.path);
130
+ var childResponse = <b>await </b>client.getResponse();
131
+ var responseEntity = $.response.entities.create();
132
+ <b>await </b>responseEntity.setBody(childResponse);
133
+ }</code></pre>
134
+ </dd>
135
+ </dl>
136
+ </article>
137
+ </section>
138
+ </div>
139
+ <nav>
140
+ <h2><a href="index.html">Index</a></h2>
141
+ <h3>Classes</h3>
142
+ <table>
143
+ <tr>
144
+ <td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
145
+ <td class="oblique">$.security</td>
146
+ </tr>
147
+ <tr>
148
+ <td><a href="$.Application.html">Application</a></td>
149
+ <td class="oblique">$</td>
150
+ </tr>
151
+ <tr>
152
+ <td><a href="$.web.Body.html">Body</a></td>
153
+ <td class="oblique">$.web</td>
154
+ </tr>
155
+ <tr>
156
+ <td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
157
+ <td class="oblique">$.db</td>
158
+ </tr>
159
+ <tr>
160
+ <td><a href="$.net.http.Client.html">Client</a></td>
161
+ <td class="oblique">$.net.http</td>
162
+ </tr>
163
+ <tr>
164
+ <td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
165
+ <td class="oblique">$.hdb</td>
166
+ </tr>
167
+ <tr>
168
+ <td><a href="$.db.Connection.html">Connection</a></td>
169
+ <td class="oblique">$.db</td>
170
+ </tr>
171
+ <tr>
172
+ <td><a href="$.hdb.Connection.html">Connection</a></td>
173
+ <td class="oblique">$.hdb</td>
174
+ </tr>
175
+ <tr>
176
+ <td><a href="$.net.Destination.html">Destination</a></td>
177
+ <td class="oblique">$.net</td>
178
+ </tr>
179
+ <tr>
180
+ <td><a href="$.net.http.Destination.html">Destination</a></td>
181
+ <td class="oblique">$.net.http</td>
182
+ </tr>
183
+ <tr>
184
+ <td><a href="$.web.EntityList.html">EntityList</a></td>
185
+ <td class="oblique">$.web</td>
186
+ </tr>
187
+ <tr>
188
+ <td><a href="$.jobs.Job.html">Job</a></td>
189
+ <td class="oblique">$.jobs</td>
190
+ </tr>
191
+ <tr>
192
+ <td><a href="$.jobs.JobLog.html">JobLog</a></td>
193
+ <td class="oblique">$.jobs</td>
194
+ </tr>
195
+ <tr>
196
+ <td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
197
+ <td class="oblique">$.jobs</td>
198
+ </tr>
199
+ <tr>
200
+ <td><a href="$.net.Mail.html">Mail</a></td>
201
+ <td class="oblique">$.net</td>
202
+ </tr>
203
+ <tr>
204
+ <td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
205
+ <td class="oblique">$.db</td>
206
+ </tr>
207
+ <tr>
208
+ <td><a href="$.net.Mail.Part.html">Part</a></td>
209
+ <td class="oblique">$.net.Mail</td>
210
+ </tr>
211
+ <tr>
212
+ <td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
213
+ <td class="oblique">$.db</td>
214
+ </tr>
215
+ <tr>
216
+ <td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
217
+ <td class="oblique">$.hdb</td>
218
+ </tr>
219
+ <tr>
220
+ <td><a href="$.net.http.Request.html">Request</a></td>
221
+ <td class="oblique">$.net.http</td>
222
+ </tr>
223
+ <tr>
224
+ <td><a href="$.db.ResultSet.html">ResultSet</a></td>
225
+ <td class="oblique">$.db</td>
226
+ </tr>
227
+ <tr>
228
+ <td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
229
+ <td class="oblique">$.hdb</td>
230
+ </tr>
231
+ <tr>
232
+ <td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
233
+ <td class="oblique">$.hdb</td>
234
+ </tr>
235
+ <tr>
236
+ <td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
237
+ <td class="oblique">$.db</td>
238
+ </tr>
239
+ <tr>
240
+ <td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
241
+ <td class="oblique">$.hdb</td>
242
+ </tr>
243
+ <tr>
244
+ <td><a href="$.util.SAXParser.html">SAXParser</a></td>
245
+ <td class="oblique">$.util</td>
246
+ </tr>
247
+ <tr>
248
+ <td><a href="$.Session.html">Session</a></td>
249
+ <td class="oblique">$</td>
250
+ </tr>
251
+ <tr>
252
+ <td><a href="$.text.analysis.Session.html">Session</a></td>
253
+ <td class="oblique">$.text.analysis</td>
254
+ </tr>
255
+ <tr>
256
+ <td><a href="$.text.mining.Session.html">Session</a></td>
257
+ <td class="oblique">$.text.mining</td>
258
+ </tr>
259
+ <tr>
260
+ <td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
261
+ <td class="oblique">$.net</td>
262
+ </tr>
263
+ <tr>
264
+ <td><a href="$.db.SQLException.html">SQLException</a></td>
265
+ <td class="oblique">$.db</td>
266
+ </tr>
267
+ <tr>
268
+ <td><a href="$.hdb.SQLException.html">SQLException</a></td>
269
+ <td class="oblique">$.hdb</td>
270
+ </tr>
271
+ <tr>
272
+ <td><a href="$.security.Store.html">Store</a></td>
273
+ <td class="oblique">$.security</td>
274
+ </tr>
275
+ <tr>
276
+ <td><a href="$.web.TupelList.html">TupelList</a></td>
277
+ <td class="oblique">$.web</td>
278
+ </tr>
279
+ <tr>
280
+ <td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
281
+ <td class="oblique">$.web</td>
282
+ </tr>
283
+ <tr>
284
+ <td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
285
+ <td class="oblique">$.web</td>
286
+ </tr>
287
+ <tr>
288
+ <td><a href="$.web.WebRequest.html">WebRequest</a></td>
289
+ <td class="oblique">$.web</td>
290
+ </tr>
291
+ <tr>
292
+ <td><a href="$.web.WebResponse.html">WebResponse</a></td>
293
+ <td class="oblique">$.web</td>
294
+ </tr>
295
+ <tr>
296
+ <td><a href="$.util.Zip.html">Zip</a></td>
297
+ <td class="oblique">$.util</td>
298
+ </tr>
299
+ </table>
300
+ <h3>Namespaces</h3>
301
+ <ul>
302
+ <li><a href="$.html"><span class="oblique"></span>$</a></li>
303
+ <li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
304
+ <li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
305
+ <li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
306
+ <li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
307
+ <li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
308
+ <li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
309
+ <li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
310
+ <li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
311
+ <li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
312
+ <li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
313
+ <li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
314
+ <li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
315
+ <li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
316
+ <li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
317
+ <li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
318
+ <li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
319
+ <li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
320
+ </ul>
321
+ </nav>
322
+ <br clear="both">
323
+ <footer>
324
+ <a href="Copyright-SAP.html">Copyright</a>
325
+ &
326
+ <a href="Disclaimer-SAP.html">Disclaimer</a>
327
+ </footer>
328
+ <script>prettyPrint();</script>
329
+ <script src="scripts/linenumber.js"></script>
330
+
331
+ </body>
332
+
333
+ </html>
@@ -0,0 +1,296 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>JSDoc: Class: EntityList</title>
7
+ <script src="scripts/prettify/prettify.js"></script>
8
+ <script src="scripts/prettify/lang-css.js"></script>
9
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
10
+ <script src="scripts/launch-8b3c5ca29b9e.min.js"></script>
11
+ <script src="scripts/highlight.js"></script>
12
+ <link rel="canonical" href="$.web.EntityList.html">
13
+ </head>
14
+ <body>
15
+ <div id="main">
16
+ <h1 class="page-title">Class: EntityList</h1>
17
+ <section>
18
+ <header>
19
+ <h2>
20
+ <span class="ancestors"><a href="$.html">$</a><a href="$.web.html">.web</a>.</span>
21
+ EntityList
22
+ </h2>
23
+ <div class="class-description">$.web.EntityList Represents a list of request or response entities.</div>
24
+ </header>
25
+ <article>
26
+ <div class="container-overview">
27
+ <dt>
28
+ <h4 class="name" id="EntityList"><span class="type-signature"></span>new EntityList<span
29
+ class="signature">()</span><span class="type-signature"></span></h4>
30
+ </dt>
31
+ <dd>
32
+ <div class="description">
33
+ A list of request or response entities.
34
+ The EntityList holds WebEntityRequest or WebEntityResponse objects.
35
+ For normal requests and responses, the entity lists are empty.
36
+ A multi-part request has entities rather than a body comprising a tree hierarchy.
37
+ Similarly, for a multi-part response you can either set the body or create entities.
38
+ </div>
39
+ <dl class="details">
40
+ </dl>
41
+ <h5>Example</h5>
42
+ <pre class="prettyprint"><code>var i;
43
+ var cumulatedBody = "";
44
+ for (i = 0; i < $.request.entities.length; ++i) {
45
+ if ($.request.entities[i].body) {
46
+ cumulatedBody = cumulatedBody + $.request.entities[i].body.asString();
47
+ }
48
+ }
49
+ ...</code></pre>
50
+ </dd>
51
+ </div>
52
+ <h3 class="subsection-title">Members</h3>
53
+ <dl>
54
+ <dt>
55
+ <h4 class="name" id="length"><span class="type-signature"></span>length<span
56
+ class="type-signature"></span></h4>
57
+ </dt>
58
+ <dd>
59
+ <div class="description">
60
+ The size of the entity list
61
+ </div>
62
+ <dl class="details">
63
+ </dl>
64
+ </dd>
65
+ </dl>
66
+ <h3 class="subsection-title">Methods</h3>
67
+ <dl>
68
+ <dt>
69
+ <h4 class="name" id="create"><span class="type-signature"></span>create<span
70
+ class="signature">()</span><span class="type-signature"> &rarr; {<a
71
+ href="$.web.WebEntityResponse.html">$.web.WebEntityResponse</a>}</span></h4>
72
+ </dt>
73
+ <dd>
74
+ <div class="description">
75
+ Create a new entity.
76
+ Creates a sub-entity in the current list of entities in EntityList.
77
+ If a body was set using setBody(), it is removed.
78
+ You can only create new entities for EntityLists of $.response and $.net.http.Request objects.
79
+ </div>
80
+ <dl class="details">
81
+ </dl>
82
+ <h5>Throws:</h5>
83
+ <div class="param-desc">
84
+ Throws an error if the entity cannot be created on the object
85
+ </div>
86
+ <h5>Returns:</h5>
87
+ <div class="param-desc">
88
+ Returns a WebEntityResponse
89
+ </div>
90
+ <dl>
91
+ <dt>
92
+ Type
93
+ </dt>
94
+ <dd>
95
+ <span class="param-type"><a href="$.web.WebEntityResponse.html">$.web.WebEntityResponse</a></span>
96
+ </dd>
97
+ </dl>
98
+ </dd>
99
+ </dl>
100
+ </article>
101
+ </section>
102
+ </div>
103
+ <nav>
104
+ <h2><a href="index.html">Index</a></h2>
105
+ <h3>Classes</h3>
106
+ <table>
107
+ <tr>
108
+ <td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
109
+ <td class="oblique">$.security</td>
110
+ </tr>
111
+ <tr>
112
+ <td><a href="$.Application.html">Application</a></td>
113
+ <td class="oblique">$</td>
114
+ </tr>
115
+ <tr>
116
+ <td><a href="$.web.Body.html">Body</a></td>
117
+ <td class="oblique">$.web</td>
118
+ </tr>
119
+ <tr>
120
+ <td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
121
+ <td class="oblique">$.db</td>
122
+ </tr>
123
+ <tr>
124
+ <td><a href="$.net.http.Client.html">Client</a></td>
125
+ <td class="oblique">$.net.http</td>
126
+ </tr>
127
+ <tr>
128
+ <td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
129
+ <td class="oblique">$.hdb</td>
130
+ </tr>
131
+ <tr>
132
+ <td><a href="$.db.Connection.html">Connection</a></td>
133
+ <td class="oblique">$.db</td>
134
+ </tr>
135
+ <tr>
136
+ <td><a href="$.hdb.Connection.html">Connection</a></td>
137
+ <td class="oblique">$.hdb</td>
138
+ </tr>
139
+ <tr>
140
+ <td><a href="$.net.Destination.html">Destination</a></td>
141
+ <td class="oblique">$.net</td>
142
+ </tr>
143
+ <tr>
144
+ <td><a href="$.net.http.Destination.html">Destination</a></td>
145
+ <td class="oblique">$.net.http</td>
146
+ </tr>
147
+ <tr>
148
+ <td><a href="$.web.EntityList.html">EntityList</a></td>
149
+ <td class="oblique">$.web</td>
150
+ </tr>
151
+ <tr>
152
+ <td><a href="$.jobs.Job.html">Job</a></td>
153
+ <td class="oblique">$.jobs</td>
154
+ </tr>
155
+ <tr>
156
+ <td><a href="$.jobs.JobLog.html">JobLog</a></td>
157
+ <td class="oblique">$.jobs</td>
158
+ </tr>
159
+ <tr>
160
+ <td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
161
+ <td class="oblique">$.jobs</td>
162
+ </tr>
163
+ <tr>
164
+ <td><a href="$.net.Mail.html">Mail</a></td>
165
+ <td class="oblique">$.net</td>
166
+ </tr>
167
+ <tr>
168
+ <td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
169
+ <td class="oblique">$.db</td>
170
+ </tr>
171
+ <tr>
172
+ <td><a href="$.net.Mail.Part.html">Part</a></td>
173
+ <td class="oblique">$.net.Mail</td>
174
+ </tr>
175
+ <tr>
176
+ <td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
177
+ <td class="oblique">$.db</td>
178
+ </tr>
179
+ <tr>
180
+ <td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
181
+ <td class="oblique">$.hdb</td>
182
+ </tr>
183
+ <tr>
184
+ <td><a href="$.net.http.Request.html">Request</a></td>
185
+ <td class="oblique">$.net.http</td>
186
+ </tr>
187
+ <tr>
188
+ <td><a href="$.db.ResultSet.html">ResultSet</a></td>
189
+ <td class="oblique">$.db</td>
190
+ </tr>
191
+ <tr>
192
+ <td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
193
+ <td class="oblique">$.hdb</td>
194
+ </tr>
195
+ <tr>
196
+ <td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
197
+ <td class="oblique">$.hdb</td>
198
+ </tr>
199
+ <tr>
200
+ <td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
201
+ <td class="oblique">$.db</td>
202
+ </tr>
203
+ <tr>
204
+ <td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
205
+ <td class="oblique">$.hdb</td>
206
+ </tr>
207
+ <tr>
208
+ <td><a href="$.util.SAXParser.html">SAXParser</a></td>
209
+ <td class="oblique">$.util</td>
210
+ </tr>
211
+ <tr>
212
+ <td><a href="$.Session.html">Session</a></td>
213
+ <td class="oblique">$</td>
214
+ </tr>
215
+ <tr>
216
+ <td><a href="$.text.analysis.Session.html">Session</a></td>
217
+ <td class="oblique">$.text.analysis</td>
218
+ </tr>
219
+ <tr>
220
+ <td><a href="$.text.mining.Session.html">Session</a></td>
221
+ <td class="oblique">$.text.mining</td>
222
+ </tr>
223
+ <tr>
224
+ <td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
225
+ <td class="oblique">$.net</td>
226
+ </tr>
227
+ <tr>
228
+ <td><a href="$.db.SQLException.html">SQLException</a></td>
229
+ <td class="oblique">$.db</td>
230
+ </tr>
231
+ <tr>
232
+ <td><a href="$.hdb.SQLException.html">SQLException</a></td>
233
+ <td class="oblique">$.hdb</td>
234
+ </tr>
235
+ <tr>
236
+ <td><a href="$.security.Store.html">Store</a></td>
237
+ <td class="oblique">$.security</td>
238
+ </tr>
239
+ <tr>
240
+ <td><a href="$.web.TupelList.html">TupelList</a></td>
241
+ <td class="oblique">$.web</td>
242
+ </tr>
243
+ <tr>
244
+ <td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
245
+ <td class="oblique">$.web</td>
246
+ </tr>
247
+ <tr>
248
+ <td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
249
+ <td class="oblique">$.web</td>
250
+ </tr>
251
+ <tr>
252
+ <td><a href="$.web.WebRequest.html">WebRequest</a></td>
253
+ <td class="oblique">$.web</td>
254
+ </tr>
255
+ <tr>
256
+ <td><a href="$.web.WebResponse.html">WebResponse</a></td>
257
+ <td class="oblique">$.web</td>
258
+ </tr>
259
+ <tr>
260
+ <td><a href="$.util.Zip.html">Zip</a></td>
261
+ <td class="oblique">$.util</td>
262
+ </tr>
263
+ </table>
264
+ <h3>Namespaces</h3>
265
+ <ul>
266
+ <li><a href="$.html"><span class="oblique"></span>$</a></li>
267
+ <li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
268
+ <li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
269
+ <li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
270
+ <li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
271
+ <li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
272
+ <li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
273
+ <li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
274
+ <li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
275
+ <li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
276
+ <li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
277
+ <li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
278
+ <li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
279
+ <li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
280
+ <li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
281
+ <li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
282
+ <li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
283
+ <li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
284
+ </ul>
285
+ </nav>
286
+ <br clear="both">
287
+ <footer>
288
+ <a href="Copyright-SAP.html">Copyright</a>
289
+ &
290
+ <a href="Disclaimer-SAP.html">Disclaimer</a>
291
+ </footer>
292
+ <script>prettyPrint();</script>
293
+ <script src="scripts/linenumber.js"></script>
294
+ </body>
295
+
296
+ </html>