@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.
- package/CHANGELOG.md +26 -0
- package/LICENSE +37 -0
- package/README.md +445 -0
- package/differences.md +162 -0
- package/docs/$.Application.html +262 -0
- package/docs/$.Session.html +674 -0
- package/docs/$.db.CallableStatement.html +2524 -0
- package/docs/$.db.Connection.html +511 -0
- package/docs/$.db.ParameterMetaData.html +805 -0
- package/docs/$.db.PreparedStatement.html +1796 -0
- package/docs/$.db.ResultSet.html +1308 -0
- package/docs/$.db.ResultSetMetaData.html +800 -0
- package/docs/$.db.SQLException.html +259 -0
- package/docs/$.db.html +773 -0
- package/docs/$.hdb.ColumnMetadata.html +438 -0
- package/docs/$.hdb.Connection.html +663 -0
- package/docs/$.hdb.ProcedureResult.html +280 -0
- package/docs/$.hdb.ResultSet.html +324 -0
- package/docs/$.hdb.ResultSetIterator.html +315 -0
- package/docs/$.hdb.ResultSetMetaData.html +259 -0
- package/docs/$.hdb.SQLException.html +259 -0
- package/docs/$.hdb.html +557 -0
- package/docs/$.html +471 -0
- package/docs/$.jobs.Job.html +783 -0
- package/docs/$.jobs.JobLog.html +380 -0
- package/docs/$.jobs.JobSchedules.html +852 -0
- package/docs/$.jobs.html +238 -0
- package/docs/$.net.Destination.html +304 -0
- package/docs/$.net.Mail.Part.html +510 -0
- package/docs/$.net.Mail.html +504 -0
- package/docs/$.net.SMTPConnection.html +347 -0
- package/docs/$.net.html +749 -0
- package/docs/$.net.http.Client.html +562 -0
- package/docs/$.net.http.Destination.html +237 -0
- package/docs/$.net.http.Request.html +567 -0
- package/docs/$.net.http.html +292 -0
- package/docs/$.security.AntiVirus.html +361 -0
- package/docs/$.security.Store.html +636 -0
- package/docs/$.security.crypto.html +414 -0
- package/docs/$.security.html +247 -0
- package/docs/$.security.x509.html +373 -0
- package/docs/$.text.analysis.Session.html +983 -0
- package/docs/$.text.analysis.html +242 -0
- package/docs/$.text.html +246 -0
- package/docs/$.text.mining.Session.html +2018 -0
- package/docs/$.text.mining.html +242 -0
- package/docs/$.trace.html +525 -0
- package/docs/$.util.SAXParser.html +955 -0
- package/docs/$.util.Zip.html +474 -0
- package/docs/$.util.codec.html +414 -0
- package/docs/$.util.compression.html +357 -0
- package/docs/$.util.html +325 -0
- package/docs/$.util.sql.html +290 -0
- package/docs/$.web.Body.html +333 -0
- package/docs/$.web.EntityList.html +296 -0
- package/docs/$.web.TupelList.html +496 -0
- package/docs/$.web.WebEntityRequest.html +393 -0
- package/docs/$.web.WebEntityResponse.html +392 -0
- package/docs/$.web.WebRequest.html +560 -0
- package/docs/$.web.WebResponse.html +609 -0
- package/docs/$.web.html +246 -0
- package/docs/Copyright-SAP.html +39 -0
- package/docs/Disclaimer-SAP.html +55 -0
- package/docs/index.html +232 -0
- package/docs/styles/jsdoc-default.css +382 -0
- package/lib/AppConfig.js +36 -0
- package/lib/AuditLogger.js +41 -0
- package/lib/cacert.js +26 -0
- package/lib/ctypes.js +153 -0
- package/lib/destinations/dest-provider.js +57 -0
- package/lib/index.js +235 -0
- package/lib/jobs/Action.js +40 -0
- package/lib/jobs/Job.js +100 -0
- package/lib/jobs/JobManager.js +150 -0
- package/lib/jobs/JobsRuntime.js +133 -0
- package/lib/jobs/SqlScriptJobRunner.js +36 -0
- package/lib/jobs/XsjsJobRunner.js +78 -0
- package/lib/jobs/index.js +11 -0
- package/lib/logging.js +16 -0
- package/lib/middleware.js +125 -0
- package/lib/odata/ODataService.js +125 -0
- package/lib/odata/index.js +7 -0
- package/lib/odata/service-factory.js +26 -0
- package/lib/passport-noauth.js +17 -0
- package/lib/routes.js +115 -0
- package/lib/runtime.js +740 -0
- package/lib/sandbox.js +40 -0
- package/lib/utils/XsJsFunctionRunner.js +57 -0
- package/lib/utils/XsJsLibFunctionRunner.js +57 -0
- package/lib/utils/buffer-utils.js +77 -0
- package/lib/utils/compression-utils.js +14 -0
- package/lib/utils/date-utils.js +104 -0
- package/lib/utils/errors/HttpError.js +20 -0
- package/lib/utils/errors/wrap-app-error.js +18 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/xs-function-runner.js +51 -0
- package/lib/utils/xs-types.js +21 -0
- package/lib/utils/xspath.js +36 -0
- package/lib/utils/xsstack.js +28 -0
- package/lib/views/error.html +28 -0
- package/lib/xsjs/Application.js +28 -0
- package/lib/xsjs/Locale.js +53 -0
- package/lib/xsjs/Session.js +31 -0
- package/lib/xsjs/constants.js +71 -0
- package/lib/xsjs/db/common/DbBase.js +85 -0
- package/lib/xsjs/db/common/DbOptions.js +163 -0
- package/lib/xsjs/db/common/arguments-validation.js +102 -0
- package/lib/xsjs/db/common/connection.js +12 -0
- package/lib/xsjs/db/common/enums.js +93 -0
- package/lib/xsjs/db/common/execute-batch.js +38 -0
- package/lib/xsjs/db/common/parse-time.js +139 -0
- package/lib/xsjs/db/dbapi/CallableStatement.js +192 -0
- package/lib/xsjs/db/dbapi/Connection.js +78 -0
- package/lib/xsjs/db/dbapi/DB.js +39 -0
- package/lib/xsjs/db/dbapi/ParameterMetaData.js +118 -0
- package/lib/xsjs/db/dbapi/PreparedStatement.js +78 -0
- package/lib/xsjs/db/dbapi/ResultSet.js +220 -0
- package/lib/xsjs/db/dbapi/ResultSetMetaData.js +116 -0
- package/lib/xsjs/db/dbapi/Statement.js +514 -0
- package/lib/xsjs/db/dbapi/conversions.js +113 -0
- package/lib/xsjs/db/dbapi/fetch-rows.js +32 -0
- package/lib/xsjs/db/hdbapi/Connection.js +525 -0
- package/lib/xsjs/db/hdbapi/HDB.js +32 -0
- package/lib/xsjs/db/hdbapi/ResultSetIterator.js +40 -0
- package/lib/xsjs/db/hdbapi/convert.js +77 -0
- package/lib/xsjs/db/hdbapi/table-string-parser.js +52 -0
- package/lib/xsjs/db/index.js +4 -0
- package/lib/xsjs/index.js +13 -0
- package/lib/xsjs/jobs/Job.js +228 -0
- package/lib/xsjs/jobs/Jobs.js +11 -0
- package/lib/xsjs/jobs/Logs.js +127 -0
- package/lib/xsjs/jobs/Schedule.js +110 -0
- package/lib/xsjs/jobs/Schedules.js +108 -0
- package/lib/xsjs/net/Destination.js +43 -0
- package/lib/xsjs/net/http/Client.js +220 -0
- package/lib/xsjs/net/http/HTTP.js +72 -0
- package/lib/xsjs/net/index.js +5 -0
- package/lib/xsjs/net/smtp/Mail.js +38 -0
- package/lib/xsjs/net/smtp/Part.js +30 -0
- package/lib/xsjs/net/smtp/SMTPConnection.js +39 -0
- package/lib/xsjs/net/smtp/index.js +18 -0
- package/lib/xsjs/net/smtp/nodemailer-util.js +77 -0
- package/lib/xsjs/require.js +39 -0
- package/lib/xsjs/security/AntiVirus.js +31 -0
- package/lib/xsjs/security/Store.js +119 -0
- package/lib/xsjs/security/crypto.js +23 -0
- package/lib/xsjs/security/index.js +5 -0
- package/lib/xsjs/security/x509.js +12 -0
- package/lib/xsjs/text/analysis/Session.js +128 -0
- package/lib/xsjs/text/index.js +30 -0
- package/lib/xsjs/text/mining/Session.js +82 -0
- package/lib/xsjs/trace/trace.js +41 -0
- package/lib/xsjs/util/SAXParser.js +174 -0
- package/lib/xsjs/util/Zip.js +220 -0
- package/lib/xsjs/util/codec.js +33 -0
- package/lib/xsjs/util/compression.js +24 -0
- package/lib/xsjs/util/index.js +22 -0
- package/lib/xsjs/web/BasicWebEntity.js +41 -0
- package/lib/xsjs/web/EntityList.js +11 -0
- package/lib/xsjs/web/TupelLists/CookiesTupelList.js +47 -0
- package/lib/xsjs/web/TupelLists/HeadersTupelList.js +55 -0
- package/lib/xsjs/web/TupelLists/ParametersTupelList.js +83 -0
- package/lib/xsjs/web/TupelLists/TupelListBase.js +45 -0
- package/lib/xsjs/web/WebBody.js +135 -0
- package/lib/xsjs/web/WebEntityRequest.js +40 -0
- package/lib/xsjs/web/WebEntityResponse.js +26 -0
- package/lib/xsjs/web/WebRequest.js +209 -0
- package/lib/xsjs/web/WebResponse.js +183 -0
- package/lib/xsjs/web/index.js +4 -0
- package/lib/xsjs/web/utils/HeadersParser.js +53 -0
- package/lib/xsjs/web/utils/HttpRequestParser.js +93 -0
- package/lib/xsjs/web/utils/MultipartParser.js +163 -0
- package/lib/xsjs/web/utils/MultipartResponseBuilder.js +73 -0
- package/lib/xsjs/web/utils/SetCookieParser.js +32 -0
- package/lib/xsjslib/TextBundleWrapper.js +46 -0
- package/lib/xsjslib/index.js +11 -0
- package/npm-shrinkwrap.json +11540 -0
- package/package.json +84 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>JSDoc: Class: Client</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="$.net.http.Client.html">
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div id="main">
|
|
18
|
+
<h1 class="page-title">Class: Client</h1>
|
|
19
|
+
<section>
|
|
20
|
+
<header>
|
|
21
|
+
<h2>
|
|
22
|
+
<span class="ancestors"><a href="$.html">$</a><a href="$.net.html">.net</a><a href="$.net.http.html">.http</a>.</span>
|
|
23
|
+
Client
|
|
24
|
+
</h2>
|
|
25
|
+
<div class="class-description">HTTP(s) Client for outbound connectivity. This client supports HTTP and HTTPs
|
|
26
|
+
connections over HTTP or SOCKS proxy.
|
|
27
|
+
You can either use a destination (preferred way) or a URL as target. To use HTTPs you need to specify a
|
|
28
|
+
trust store
|
|
29
|
+
with the needed certificates (either in the destination or with setTrustStore). <br/>
|
|
30
|
+
<br/>
|
|
31
|
+
To choose between HTTP and SOCKS proxy, the proxy URL starts with either "http://" or "socks://".<br/>
|
|
32
|
+
<br/>
|
|
33
|
+
This HttpClient is equipped with a cookie database. If a previous response sent a "set-cookie" header,
|
|
34
|
+
the cookie is stored
|
|
35
|
+
for the relevant domain and path. Subsequent requests will be enriched with the stored cookies
|
|
36
|
+
automatically.
|
|
37
|
+
</div>
|
|
38
|
+
</header>
|
|
39
|
+
<article>
|
|
40
|
+
<div class="container-overview">
|
|
41
|
+
<dt>
|
|
42
|
+
<h4 class="name" id="Client"><span class="type-signature"></span>new Client<span class="signature">()</span><span
|
|
43
|
+
class="type-signature"></span></h4>
|
|
44
|
+
</dt>
|
|
45
|
+
<dd>
|
|
46
|
+
<dl class="details">
|
|
47
|
+
</dl>
|
|
48
|
+
<h5>Example</h5>
|
|
49
|
+
<pre class="prettyprint"><code>// create client
|
|
50
|
+
var client = new $.net.http.Client();
|
|
51
|
+
|
|
52
|
+
// where and what to send
|
|
53
|
+
var dest = <b>await </b>$.net.http.readDestination("testApp", "myDestination");
|
|
54
|
+
var request = new $.net.http.Request($.net.http.GET, "/"); // new Request(METHOD, PATH)
|
|
55
|
+
// the PATH will be prefixed by destination's pathPrefix, e.g. "/search?" on the request
|
|
56
|
+
|
|
57
|
+
// send the request and synchronously get the response
|
|
58
|
+
client.request(request, dest);
|
|
59
|
+
var response = <b>await </b>client.getResponse();
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// get all the cookies and headers from the response
|
|
63
|
+
var co = [], he = [];
|
|
64
|
+
for(var c in response.cookies) {
|
|
65
|
+
co.push(response.cookies[c]);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
for(var c in response.headers) {
|
|
69
|
+
he.push(response.headers[c]);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// get the body
|
|
73
|
+
var body;
|
|
74
|
+
if(!response.body)
|
|
75
|
+
body = "<Empty body!>";
|
|
76
|
+
else
|
|
77
|
+
body = response.body.asString();
|
|
78
|
+
|
|
79
|
+
// close the connection
|
|
80
|
+
client.close(); // prevent socket leak - see xsengine.ini: [communication] - max_open_sockets_per_request
|
|
81
|
+
|
|
82
|
+
// send the response as JSON
|
|
83
|
+
$.response.contentType = "application/json";
|
|
84
|
+
<b>await </b>$.response.setBody(JSON.stringify({"status": response.status, "cookies": co, "headers": he, "body": body}));</code></pre>
|
|
85
|
+
</dd>
|
|
86
|
+
</div>
|
|
87
|
+
<h3 class="subsection-title">Methods</h3>
|
|
88
|
+
<dl>
|
|
89
|
+
<dt>
|
|
90
|
+
<h4 class="name" id="close"><span class="type-signature"></span>close<span
|
|
91
|
+
class="signature">()</span><span class="type-signature"></span></h4>
|
|
92
|
+
</dt>
|
|
93
|
+
<dd>
|
|
94
|
+
<div class="description">
|
|
95
|
+
Close the connection and decrement the sockets_per_request count.
|
|
96
|
+
</div>
|
|
97
|
+
<dl class="details">
|
|
98
|
+
<dt class="tag-see">See:</dt>
|
|
99
|
+
<dd class="tag-see">
|
|
100
|
+
<ul>
|
|
101
|
+
<li>xsengine.ini: [communication] - max_open_sockets_per_request</li>
|
|
102
|
+
</ul>
|
|
103
|
+
</dd>
|
|
104
|
+
</dl>
|
|
105
|
+
</dd>
|
|
106
|
+
<dt>
|
|
107
|
+
<h4 class="name" id="getResponse"><span class="type-signature">async </span>getResponse<span
|
|
108
|
+
class="signature">()</span><span class="type-signature"> → {<a
|
|
109
|
+
href="$.web.WebResponse.html">$.web.WebResponse</a>}</span></h4>
|
|
110
|
+
</dt>
|
|
111
|
+
<dd>
|
|
112
|
+
<div class="description">
|
|
113
|
+
Retrieve the response from the previously sent request synchronously/blocking
|
|
114
|
+
</div>
|
|
115
|
+
<dl class="details">
|
|
116
|
+
</dl>
|
|
117
|
+
<h5>Throws:</h5>
|
|
118
|
+
<div class="param-desc">
|
|
119
|
+
Throws an error if there is no valid response to return
|
|
120
|
+
</div>
|
|
121
|
+
<h5>Returns:</h5>
|
|
122
|
+
<div class="param-desc">
|
|
123
|
+
A response object with headers, cookies and the response body
|
|
124
|
+
</div>
|
|
125
|
+
<dl>
|
|
126
|
+
<dt>
|
|
127
|
+
Type
|
|
128
|
+
</dt>
|
|
129
|
+
<dd>
|
|
130
|
+
<span class="param-type"><a href="$.web.WebResponse.html">$.web.WebResponse</a></span>
|
|
131
|
+
</dd>
|
|
132
|
+
</dl>
|
|
133
|
+
</dd>
|
|
134
|
+
<dt>
|
|
135
|
+
<h4 class="name" id="request"><span class="type-signature"></span>request<span class="signature">(request, destination)</span><span
|
|
136
|
+
class="type-signature"></span></h4>
|
|
137
|
+
</dt>
|
|
138
|
+
<dd>
|
|
139
|
+
<div class="description">
|
|
140
|
+
Send a new request object to the given destination
|
|
141
|
+
</div>
|
|
142
|
+
<h5>Parameters:</h5>
|
|
143
|
+
<table class="params">
|
|
144
|
+
<thead>
|
|
145
|
+
<tr>
|
|
146
|
+
<th>Name</th>
|
|
147
|
+
<th>Type</th>
|
|
148
|
+
<th class="last">Description</th>
|
|
149
|
+
</tr>
|
|
150
|
+
</thead>
|
|
151
|
+
<tbody>
|
|
152
|
+
<tr>
|
|
153
|
+
<td class="name"><code>request</code></td>
|
|
154
|
+
<td class="type">
|
|
155
|
+
<span class="param-type"><a href="$.net.http.Request.html">$.net.http.Request</a></span>
|
|
156
|
+
</td>
|
|
157
|
+
<td class="description last">The request object to send</td>
|
|
158
|
+
</tr>
|
|
159
|
+
<tr>
|
|
160
|
+
<td class="name"><code>destination</code></td>
|
|
161
|
+
<td class="type">
|
|
162
|
+
<span class="param-type"><a
|
|
163
|
+
href="$.net.http.Destination.html">$.net.http.Destination</a></span>
|
|
164
|
+
</td>
|
|
165
|
+
<td class="description last">The destination object that holds the metadata of the host to
|
|
166
|
+
send the request to
|
|
167
|
+
</td>
|
|
168
|
+
</tr>
|
|
169
|
+
</tbody>
|
|
170
|
+
</table>
|
|
171
|
+
<dl class="details">
|
|
172
|
+
</dl>
|
|
173
|
+
<h5>Throws:</h5>
|
|
174
|
+
<div class="param-desc">
|
|
175
|
+
Throws an error if the request fails or the parameters are invalid
|
|
176
|
+
</div>
|
|
177
|
+
</dd>
|
|
178
|
+
<dt>
|
|
179
|
+
<h4 class="name" id="request"><span class="type-signature"></span>request<span class="signature">(request, url, <span
|
|
180
|
+
class="optional">proxy</span>)</span><span class="type-signature"></span></h4>
|
|
181
|
+
</dt>
|
|
182
|
+
<dd>
|
|
183
|
+
<div class="description">
|
|
184
|
+
Send a request object to the given URL
|
|
185
|
+
</div>
|
|
186
|
+
<h5>Parameters:</h5>
|
|
187
|
+
<table class="params">
|
|
188
|
+
<thead>
|
|
189
|
+
<tr>
|
|
190
|
+
<th>Name</th>
|
|
191
|
+
<th>Type</th>
|
|
192
|
+
<th>Argument</th>
|
|
193
|
+
<th class="last">Description</th>
|
|
194
|
+
</tr>
|
|
195
|
+
</thead>
|
|
196
|
+
<tbody>
|
|
197
|
+
<tr>
|
|
198
|
+
<td class="name"><code>request</code></td>
|
|
199
|
+
<td class="type">
|
|
200
|
+
<span class="param-type"><a href="$.net.http.Request.html">$.net.http.Request</a></span>
|
|
201
|
+
</td>
|
|
202
|
+
<td class="attributes">
|
|
203
|
+
</td>
|
|
204
|
+
<td class="description last">The request object to send</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td class="name"><code>url</code></td>
|
|
208
|
+
<td class="type">
|
|
209
|
+
<span class="param-type">String</span>
|
|
210
|
+
</td>
|
|
211
|
+
<td class="attributes">
|
|
212
|
+
</td>
|
|
213
|
+
<td class="description last">URL to send the request to, e.g.
|
|
214
|
+
"http://www.google.de/q=HANA"
|
|
215
|
+
</td>
|
|
216
|
+
</tr>
|
|
217
|
+
<tr>
|
|
218
|
+
<td class="name"><code>proxy</code></td>
|
|
219
|
+
<td class="type">
|
|
220
|
+
<span class="param-type">String</span>
|
|
221
|
+
</td>
|
|
222
|
+
<td class="attributes">
|
|
223
|
+
<optional><br>
|
|
224
|
+
</td>
|
|
225
|
+
<td class="description last">Proxy URL to use for this request, e.g.
|
|
226
|
+
"http://proxy.mycompany.com:3128"
|
|
227
|
+
</td>
|
|
228
|
+
</tr>
|
|
229
|
+
</tbody>
|
|
230
|
+
</table>
|
|
231
|
+
<dl class="details">
|
|
232
|
+
</dl>
|
|
233
|
+
<h5>Throws:</h5>
|
|
234
|
+
<div class="param-desc">
|
|
235
|
+
Throws an error if the request fails or the parameters are invalid
|
|
236
|
+
</div>
|
|
237
|
+
</dd>
|
|
238
|
+
<dt>
|
|
239
|
+
<h4 class="name" id="request"><span class="type-signature"></span>request<span class="signature">(WebMethod, url, <span
|
|
240
|
+
class="optional">proxy</span>)</span><span class="type-signature"></span></h4>
|
|
241
|
+
</dt>
|
|
242
|
+
<dd>
|
|
243
|
+
<div class="description">
|
|
244
|
+
Send a new request to the given URL, using the specified HTTP method
|
|
245
|
+
</div>
|
|
246
|
+
<h5>Parameters:</h5>
|
|
247
|
+
<table class="params">
|
|
248
|
+
<thead>
|
|
249
|
+
<tr>
|
|
250
|
+
<th>Name</th>
|
|
251
|
+
<th>Type</th>
|
|
252
|
+
<th>Argument</th>
|
|
253
|
+
<th class="last">Description</th>
|
|
254
|
+
</tr>
|
|
255
|
+
</thead>
|
|
256
|
+
<tbody>
|
|
257
|
+
<tr>
|
|
258
|
+
<td class="name"><code>WebMethod</code></td>
|
|
259
|
+
<td class="type">
|
|
260
|
+
<span class="param-type"><a href="$.net.http.html">$.net.http</a></span>
|
|
261
|
+
</td>
|
|
262
|
+
<td class="attributes">
|
|
263
|
+
</td>
|
|
264
|
+
<td class="description last">The HTTP Method to use for this request
|
|
265
|
+
($.net.http.GET/POST/PUT/...)
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr>
|
|
269
|
+
<td class="name"><code>url</code></td>
|
|
270
|
+
<td class="type">
|
|
271
|
+
<span class="param-type">String</span>
|
|
272
|
+
</td>
|
|
273
|
+
<td class="attributes">
|
|
274
|
+
</td>
|
|
275
|
+
<td class="description last">URL to send the request to, e.g.
|
|
276
|
+
"http://www.google.de/q=HANA"
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
<tr>
|
|
280
|
+
<td class="name"><code>proxy</code></td>
|
|
281
|
+
<td class="type">
|
|
282
|
+
<span class="param-type">String</span>
|
|
283
|
+
</td>
|
|
284
|
+
<td class="attributes">
|
|
285
|
+
<optional><br>
|
|
286
|
+
</td>
|
|
287
|
+
<td class="description last">Proxy URL to use for this request, e.g.
|
|
288
|
+
"http://proxy.mycompany.com:3128"
|
|
289
|
+
</td>
|
|
290
|
+
</tr>
|
|
291
|
+
</tbody>
|
|
292
|
+
</table>
|
|
293
|
+
<dl class="details">
|
|
294
|
+
</dl>
|
|
295
|
+
<h5>Throws:</h5>
|
|
296
|
+
<div class="param-desc">
|
|
297
|
+
Throws an error if the request fails or the parameters are invalid
|
|
298
|
+
</div>
|
|
299
|
+
</dd>
|
|
300
|
+
<dt>
|
|
301
|
+
<h4 class="name" id="setTimeout"><span class="type-signature"></span>setTimeout<span
|
|
302
|
+
class="signature">(timeout)</span><span class="type-signature"></span></h4>
|
|
303
|
+
</dt>
|
|
304
|
+
<dd>
|
|
305
|
+
<div class="description">
|
|
306
|
+
Sets the timeout for communication with the server
|
|
307
|
+
</div>
|
|
308
|
+
<h5>Parameters:</h5>
|
|
309
|
+
<table class="params">
|
|
310
|
+
<thead>
|
|
311
|
+
<tr>
|
|
312
|
+
<th>Name</th>
|
|
313
|
+
<th>Type</th>
|
|
314
|
+
<th class="last">Description</th>
|
|
315
|
+
</tr>
|
|
316
|
+
</thead>
|
|
317
|
+
<tbody>
|
|
318
|
+
<tr>
|
|
319
|
+
<td class="name"><code>timeout</code></td>
|
|
320
|
+
<td class="type">
|
|
321
|
+
<span class="param-type">Number</span>
|
|
322
|
+
</td>
|
|
323
|
+
<td class="description last">Timeout in seconds</td>
|
|
324
|
+
</tr>
|
|
325
|
+
</tbody>
|
|
326
|
+
</table>
|
|
327
|
+
<dl class="details">
|
|
328
|
+
</dl>
|
|
329
|
+
<h5>Throws:</h5>
|
|
330
|
+
<div class="param-desc">
|
|
331
|
+
Throws an error if the parameter is not a numeric value
|
|
332
|
+
</div>
|
|
333
|
+
</dd>
|
|
334
|
+
<dt>
|
|
335
|
+
<h4 class="name" id="setTrustStore"><span class="type-signature"></span>setTrustStore<span
|
|
336
|
+
class="signature">(trustStore)</span><span class="type-signature"></span></h4>
|
|
337
|
+
</dt>
|
|
338
|
+
<dd>
|
|
339
|
+
<div class="description">
|
|
340
|
+
Sets the default trust store the will be used when issuing https://
|
|
341
|
+
requests via request(request, URI, ...)-syntax.
|
|
342
|
+
</div>
|
|
343
|
+
<h5>Parameters:</h5>
|
|
344
|
+
<table class="params">
|
|
345
|
+
<thead>
|
|
346
|
+
<tr>
|
|
347
|
+
<th>Name</th>
|
|
348
|
+
<th>Type</th>
|
|
349
|
+
<th class="last">Description</th>
|
|
350
|
+
</tr>
|
|
351
|
+
</thead>
|
|
352
|
+
<tbody>
|
|
353
|
+
<tr>
|
|
354
|
+
<td class="name"><code>trustStore</code></td>
|
|
355
|
+
<td class="type">
|
|
356
|
+
<span class="param-type">String</span>
|
|
357
|
+
</td>
|
|
358
|
+
<td class="description last">name</td>
|
|
359
|
+
</tr>
|
|
360
|
+
</tbody>
|
|
361
|
+
</table>
|
|
362
|
+
<dl class="details">
|
|
363
|
+
</dl>
|
|
364
|
+
</dd>
|
|
365
|
+
</dl>
|
|
366
|
+
</article>
|
|
367
|
+
</section>
|
|
368
|
+
</div>
|
|
369
|
+
<nav>
|
|
370
|
+
<h2><a href="index.html">Index</a></h2>
|
|
371
|
+
<h3>Classes</h3>
|
|
372
|
+
<table>
|
|
373
|
+
<tr>
|
|
374
|
+
<td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
|
|
375
|
+
<td class="oblique">$.security</td>
|
|
376
|
+
</tr>
|
|
377
|
+
<tr>
|
|
378
|
+
<td><a href="$.Application.html">Application</a></td>
|
|
379
|
+
<td class="oblique">$</td>
|
|
380
|
+
</tr>
|
|
381
|
+
<tr>
|
|
382
|
+
<td><a href="$.web.Body.html">Body</a></td>
|
|
383
|
+
<td class="oblique">$.web</td>
|
|
384
|
+
</tr>
|
|
385
|
+
<tr>
|
|
386
|
+
<td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
|
|
387
|
+
<td class="oblique">$.db</td>
|
|
388
|
+
</tr>
|
|
389
|
+
<tr>
|
|
390
|
+
<td><a href="$.net.http.Client.html">Client</a></td>
|
|
391
|
+
<td class="oblique">$.net.http</td>
|
|
392
|
+
</tr>
|
|
393
|
+
<tr>
|
|
394
|
+
<td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
|
|
395
|
+
<td class="oblique">$.hdb</td>
|
|
396
|
+
</tr>
|
|
397
|
+
<tr>
|
|
398
|
+
<td><a href="$.db.Connection.html">Connection</a></td>
|
|
399
|
+
<td class="oblique">$.db</td>
|
|
400
|
+
</tr>
|
|
401
|
+
<tr>
|
|
402
|
+
<td><a href="$.hdb.Connection.html">Connection</a></td>
|
|
403
|
+
<td class="oblique">$.hdb</td>
|
|
404
|
+
</tr>
|
|
405
|
+
<tr>
|
|
406
|
+
<td><a href="$.net.Destination.html">Destination</a></td>
|
|
407
|
+
<td class="oblique">$.net</td>
|
|
408
|
+
</tr>
|
|
409
|
+
<tr>
|
|
410
|
+
<td><a href="$.net.http.Destination.html">Destination</a></td>
|
|
411
|
+
<td class="oblique">$.net.http</td>
|
|
412
|
+
</tr>
|
|
413
|
+
<tr>
|
|
414
|
+
<td><a href="$.web.EntityList.html">EntityList</a></td>
|
|
415
|
+
<td class="oblique">$.web</td>
|
|
416
|
+
</tr>
|
|
417
|
+
<tr>
|
|
418
|
+
<td><a href="$.jobs.Job.html">Job</a></td>
|
|
419
|
+
<td class="oblique">$.jobs</td>
|
|
420
|
+
</tr>
|
|
421
|
+
<tr>
|
|
422
|
+
<td><a href="$.jobs.JobLog.html">JobLog</a></td>
|
|
423
|
+
<td class="oblique">$.jobs</td>
|
|
424
|
+
</tr>
|
|
425
|
+
<tr>
|
|
426
|
+
<td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
|
|
427
|
+
<td class="oblique">$.jobs</td>
|
|
428
|
+
</tr>
|
|
429
|
+
<tr>
|
|
430
|
+
<td><a href="$.net.Mail.html">Mail</a></td>
|
|
431
|
+
<td class="oblique">$.net</td>
|
|
432
|
+
</tr>
|
|
433
|
+
<tr>
|
|
434
|
+
<td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
|
|
435
|
+
<td class="oblique">$.db</td>
|
|
436
|
+
</tr>
|
|
437
|
+
<tr>
|
|
438
|
+
<td><a href="$.net.Mail.Part.html">Part</a></td>
|
|
439
|
+
<td class="oblique">$.net.Mail</td>
|
|
440
|
+
</tr>
|
|
441
|
+
<tr>
|
|
442
|
+
<td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
|
|
443
|
+
<td class="oblique">$.db</td>
|
|
444
|
+
</tr>
|
|
445
|
+
<tr>
|
|
446
|
+
<td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
|
|
447
|
+
<td class="oblique">$.hdb</td>
|
|
448
|
+
</tr>
|
|
449
|
+
<tr>
|
|
450
|
+
<td><a href="$.net.http.Request.html">Request</a></td>
|
|
451
|
+
<td class="oblique">$.net.http</td>
|
|
452
|
+
</tr>
|
|
453
|
+
<tr>
|
|
454
|
+
<td><a href="$.db.ResultSet.html">ResultSet</a></td>
|
|
455
|
+
<td class="oblique">$.db</td>
|
|
456
|
+
</tr>
|
|
457
|
+
<tr>
|
|
458
|
+
<td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
|
|
459
|
+
<td class="oblique">$.hdb</td>
|
|
460
|
+
</tr>
|
|
461
|
+
<tr>
|
|
462
|
+
<td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
|
|
463
|
+
<td class="oblique">$.hdb</td>
|
|
464
|
+
</tr>
|
|
465
|
+
<tr>
|
|
466
|
+
<td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
|
|
467
|
+
<td class="oblique">$.db</td>
|
|
468
|
+
</tr>
|
|
469
|
+
<tr>
|
|
470
|
+
<td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
|
|
471
|
+
<td class="oblique">$.hdb</td>
|
|
472
|
+
</tr>
|
|
473
|
+
<tr>
|
|
474
|
+
<td><a href="$.util.SAXParser.html">SAXParser</a></td>
|
|
475
|
+
<td class="oblique">$.util</td>
|
|
476
|
+
</tr>
|
|
477
|
+
<tr>
|
|
478
|
+
<td><a href="$.Session.html">Session</a></td>
|
|
479
|
+
<td class="oblique">$</td>
|
|
480
|
+
</tr>
|
|
481
|
+
<tr>
|
|
482
|
+
<td><a href="$.text.analysis.Session.html">Session</a></td>
|
|
483
|
+
<td class="oblique">$.text.analysis</td>
|
|
484
|
+
</tr>
|
|
485
|
+
<tr>
|
|
486
|
+
<td><a href="$.text.mining.Session.html">Session</a></td>
|
|
487
|
+
<td class="oblique">$.text.mining</td>
|
|
488
|
+
</tr>
|
|
489
|
+
<tr>
|
|
490
|
+
<td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
|
|
491
|
+
<td class="oblique">$.net</td>
|
|
492
|
+
</tr>
|
|
493
|
+
<tr>
|
|
494
|
+
<td><a href="$.db.SQLException.html">SQLException</a></td>
|
|
495
|
+
<td class="oblique">$.db</td>
|
|
496
|
+
</tr>
|
|
497
|
+
<tr>
|
|
498
|
+
<td><a href="$.hdb.SQLException.html">SQLException</a></td>
|
|
499
|
+
<td class="oblique">$.hdb</td>
|
|
500
|
+
</tr>
|
|
501
|
+
<tr>
|
|
502
|
+
<td><a href="$.security.Store.html">Store</a></td>
|
|
503
|
+
<td class="oblique">$.security</td>
|
|
504
|
+
</tr>
|
|
505
|
+
<tr>
|
|
506
|
+
<td><a href="$.web.TupelList.html">TupelList</a></td>
|
|
507
|
+
<td class="oblique">$.web</td>
|
|
508
|
+
</tr>
|
|
509
|
+
<tr>
|
|
510
|
+
<td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
|
|
511
|
+
<td class="oblique">$.web</td>
|
|
512
|
+
</tr>
|
|
513
|
+
<tr>
|
|
514
|
+
<td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
|
|
515
|
+
<td class="oblique">$.web</td>
|
|
516
|
+
</tr>
|
|
517
|
+
<tr>
|
|
518
|
+
<td><a href="$.web.WebRequest.html">WebRequest</a></td>
|
|
519
|
+
<td class="oblique">$.web</td>
|
|
520
|
+
</tr>
|
|
521
|
+
<tr>
|
|
522
|
+
<td><a href="$.web.WebResponse.html">WebResponse</a></td>
|
|
523
|
+
<td class="oblique">$.web</td>
|
|
524
|
+
</tr>
|
|
525
|
+
<tr>
|
|
526
|
+
<td><a href="$.util.Zip.html">Zip</a></td>
|
|
527
|
+
<td class="oblique">$.util</td>
|
|
528
|
+
</tr>
|
|
529
|
+
</table>
|
|
530
|
+
<h3>Namespaces</h3>
|
|
531
|
+
<ul>
|
|
532
|
+
<li><a href="$.html"><span class="oblique"></span>$</a></li>
|
|
533
|
+
<li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
|
|
534
|
+
<li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
|
|
535
|
+
<li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
|
|
536
|
+
<li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
|
|
537
|
+
<li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
|
|
538
|
+
<li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
|
|
539
|
+
<li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
|
|
540
|
+
<li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
|
|
541
|
+
<li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
|
|
542
|
+
<li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
|
|
543
|
+
<li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
|
|
544
|
+
<li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
|
|
545
|
+
<li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
|
|
546
|
+
<li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
|
|
547
|
+
<li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
|
|
548
|
+
<li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
|
|
549
|
+
<li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
|
|
550
|
+
</ul>
|
|
551
|
+
</nav>
|
|
552
|
+
<br clear="both">
|
|
553
|
+
<footer>
|
|
554
|
+
<a href="Copyright-SAP.html">Copyright</a>
|
|
555
|
+
&
|
|
556
|
+
<a href="Disclaimer-SAP.html">Disclaimer</a>
|
|
557
|
+
</footer>
|
|
558
|
+
<script>prettyPrint();</script>
|
|
559
|
+
<script src="scripts/linenumber.js"></script>
|
|
560
|
+
</body>
|
|
561
|
+
|
|
562
|
+
</html>
|