Page History
Divcache | ||
---|---|---|
| DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
...
id | description |
---|
...
padding | 0px |
---|---|
width | 80px |
...
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
Table Cell (td) |
---|
DeleteRequest |
...
Table Cell (td) |
---|
GetRequest |
...
| |||||||||||||
...
...
Table Cell (td) |
---|
HeadRequest |
...
Table Cell (td) |
---|
OptionsRequest |
...
...
...
Table Cell (td) |
---|
PostRequest |
...
Table Cell (td) |
---|
PutRequest |
...
...
...
Table Cell (td) |
---|
TraceRequest |
...
...
...
Table Cell (td) |
---|
Cookie |
...
...
...
Table Cell (td) |
---|
Cookie[] |
...
...
...
...
...
...
Table Cell (td) |
---|
Boolean |
...
...
Table Cell (td) |
---|
Boolean |
...
...
Table Cell (td) |
---|
Boolean |
...
...
...
Table Cell (td) |
---|
Boolean |
...
...
Table Cell (td) |
---|
Boolean |
...
...
...
...
...
...
...
padding | 0px |
---|---|
width | 100% |
...
...
Table Head (th) | ||
---|---|---|
| ||
Method Details |
...
id | createDeleteRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | createGetRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
...
id | des |
---|
...
class | sIndent |
---|
...
close()releases all resources that this client has, should be called after usage. Supported Clients Sample createDeleteRequest(url)Creates a new delete request (a request to delete a resource on server). Parameters Returns Supported Clients Sample createGetRequest(url)Creates a new get request (retrieves whatever information is stored on specified url). If this url is a https ssl encrypted url which certificates are not in the java certificate store. (Like a self signed certificate or a none existing root certificate) Then for a smart client a dialog will be given, to give the user the ability to accept this certificate for the next time. For a Web or Headless client the system administrator does have to add that certificate (chain) to the java install on the server. See http://wiki.servoy.com/display/tutorials/Import+a+%28Root%29+certificate+in+the+java+cacerts+file |
...
...
Parameters |
...
...
id | ret |
---|
Returns |
...
...
Supported Clients |
...
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
var client = plugins.http.createNewHttpClient();
var request = client.createGetRequest('http://www.servoy.com');
var response = request.executeRequest();
var httpCode = response.getStatusCode(); // httpCode 200 is ok"
var content = response.getResponseBody(); |
...
class | lastDetailRow |
---|
...
id | createHeadRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | createOptionsRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | createPostRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
...
id | des |
---|
...
class | sIndent |
---|
...
createHeadRequest(url)Creates a new head request (similar to get request, must not contain body content). Parameters Returns Supported Clients Sample createOptionsRequest(url)Creates a new options request (a request for information about communication options). Parameters Returns Supported Clients Sample createPatchRequest(url)Creates a new patch request (used for granular updates). Parameters Returns Supported Clients Sample createPostRequest(url)Create a new post request ( Origin server should accept/process the submitted data.) If this url is a https ssl encrypted url which certificates are not in the java certificate store. (Like a self signed certificate or a none existing root certificate) Then for a smart client a dialog will be given, to give the user the ability to accept this certificate for the next time. For a Web or Headless client the system administrator does have to add that certificate (chain) to the java install on the server. See http://wiki.servoy.com/display/tutorials/Import+a+%28Root%29+certificate+in+the+java+cacerts+file |
...
...
Parameters |
...
...
id | ret |
---|
Returns |
...
...
Supported Clients |
...
id | sam |
---|
...
class | lastDetailRow |
---|
...
id | createPutRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | createTraceRequest-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | getCookie-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | getCookies |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | setClientProxyCredentials-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | setCookie-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | setCookie-String_String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | setCookie-String_String_String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
Boolean |
Span | ||
---|---|---|
| ||
setCookie |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
var client = plugins.http.createNewHttpClient();
var poster = client.createPostRequest('https://twitter.com/statuses/update.json');
poster.addParameter('status',globals.textToPost);
poster.addParameter('source','Test Source');
poster.setCharset('UTF-8');
var httpCode = poster.executeRequest(globals.twitterUserName, globals.twitterPassword).getStatusCode(); // httpCode 200 is ok |
createPutRequest(url)Creates a new put request (similar to post request, contains information to be submitted). Parameters Returns Supported Clients Sample createTraceRequest(url)Creates a new trace request (debug request, server will just echo back). Parameters Returns Supported Clients Sample getCookie(cookieName)Get a cookie by name. Parameters Returns Supported Clients Sample getCookies()Get all cookies from this client. Returns Supported Clients Sample setClientProxyCredentials(userName, password)Set proxy credentials. Parameters Supported Clients Sample setClientProxyServer(hostname, port)Set proxy server. Parameters Supported Clients Sample setCookie(cookieName, cookieValue)Add cookie to the this client. Parameters Returns Supported Clients Sample setCookie(cookieName, cookieValue, domain)Add cookie to the this client. Parameters Returns Supported Clients Sample setCookie(cookieName, cookieValue, domain, path) |
...
...
Add cookie to the this client. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
Supported Clients |
...
...
Span | ||
---|---|---|
| ||
Boolean |
Span | ||
---|---|---|
| ||
setCookie |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
var cookieSet = client.setCookie('JSESSIONID', 'abc', 'localhost', '/', -1, false)
if (cookieSet)
{
//do something
} |
...
class | lastDetailRow |
---|
...
id | setCookie-String_String_String_String_Number |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
setCookie(cookieName, cookieValue, domain, path, maxAge) |
...
...
...
Add cookie to the this client. |
...
...
...
Parameters |
...
...
...
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
Supported Clients |
...
id | sam |
---|
Span | ||
---|---|---|
| ||
Boolean |
Span | ||
---|---|---|
| ||
setCookie |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
var cookieSet = client.setCookie('JSESSIONID', 'abc', 'localhost', '/', -1, false)
if (cookieSet)
{
//do something
} |
...
class | lastDetailRow |
---|
...
id | setCookie-String_String_String_String_Number_Boolean |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
setCookie(cookieName, cookieValue, domain, path, maxAge, secure) |
...
...
Add cookie to the this client. |
...
...
Parameters |
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
Supported Clients |
...
...
class | lastDetailRow |
---|
...
id | setTimeout- |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
var cookieSet = client.setCookie('JSESSIONID', 'abc', 'localhost', '/', -1, false)
if (cookieSet)
{
//do something
} |
setTimeout(msTimeout)Sets a timeout in milliseconds for retrieving of data (when 0 there is no timeout). Parameters Supported Clients Sample |