Child pages
  • TraceRequest

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
addHeader(headerName, value)
Add a header to the request.

...

Table Cell (td)
void

...

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryAdd a header to the request.voidExecute the request method asynchronous.voidExecute the request method asynchronous using windows authentication.voidExecute the request method asynchronous.voidExecute the request method asynchronous using windows authentication.

...

void

...

...

Execute the request method asynchronous.

...

void

...

Execute the request method asynchronous

...

Table Cell (td)
Response

...

using windows authentication.Execute the request method.

...

Table Cell (td)
Response

...

Execute the request method.

...

Table Cell (td)
Response

...

...

idsig

...

Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
executeAsyncRequest

...

Execute a request method using windows authentication.

...

idfunction
classservoy sDetail

...

padding0px
width100%
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details

...

idaddHeader-String_String
Table Row (tr)
idname
Table Cell (td)
addHeader
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
addHeader
Span
(headerName, value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a header to the request.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} headerName
{String} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
method.addHeader('Content-type','text/xml; charset=ISO-8859-1')

...

classlastDetailRow

...

idexecuteAsyncRequest-String_String_String_String_Function_Function
Table Row (tr)
idname
Table Cell (td)
executeAsyncRequest
voidWhatever to use preemptive authentication (sending the credentials in the header, avoiding the server request to the client - useful when uploading files, as some http servers would cancel the first request from the client, if too big, as the authentication request to the client was not yet sent)

functionservoy sDetail2100%height:30px2Methods DetailsaddHeadername

addHeader(headerName, value)

dessIndent
Add a header to the request.
prs

Parameters

sIndentheaderName ;value ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowexecuteAsyncRequestname

executeAsyncRequest(username, password, workstation, domain, successCallbackMethod, errorCallbackMethod)

dessIndent
Execute the request method asynchronous. Success callback method will be called when response is received.
Response is sent as parameter in callback.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out), the errorCallbackMethod is called with exception message as parameter.
prs

Parameters

sIndentusernamethe user namepasswordthe passwordworkstationThe workstation the authentication request is originating from.domainThe domain to authenticate within.successCallbackMethodcallbackMethod to be called after response is receivederrorCallbackMethodcallbackMethod to be called if request errors out
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeAsyncRequestname

executeAsyncRequest(username, password, workstation, domain, successCallbackMethod, errorCallbackMethod, callbackExtraArgs)

...

des

...

sIndent
Execute the request method asynchronous using windows authentication.
Success callback method will be called when response is received. Response is sent as parameter in callback followed by any 'callbackExtraArgs' that were given.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out, network errors), the errorCallbackMethod is called with exception message as parameter followed by any 'callbackExtraArgs' that were given.

...

prs

...

Parameters

...

sIndent

...

username

...

the user name

...

password

...

the password

...

workstation

...

The workstation the authentication request is originating from.

...

domain

...

The domain to authenticate within.

...

successCallbackMethod

...

callbackMethod to be called after response is received

...

errorCallbackMethod

...

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
method.executeAsyncRequest('username','password','mycomputername','domain',globals.successCallback,globals.errorCallback)

...

classlastDetailRow

...

idexecuteAsyncRequest-String_String_Function_Function
Table Row (tr)
idname
Table Cell (td)
executeAsyncRequest

...

idsig

...

Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
executeAsyncRequest

...

callbackMethod to be called if request errors out

...

callbackExtraArgsextra arguments that will be passed to the callback methods; can be used to identify from which request the response arrived when using the same callback method for multiple requests. Please use only simple JSON arguments (primitive types or array/objects of primitive types)clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeAsyncRequestname

executeAsyncRequest(username, password, successCallbackMethod, errorCallbackMethod)

dessIndent
Execute the request method asynchronous. Success callback method will be called when response is received.
Response is sent as parameter in callback.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out), the errorCallbackMethod is called with exception message as parameter.
prs

Parameters

sIndentusernamethe user namepasswordthe passwordsuccessCallbackMethodcallbackMethod to be called after response is receivederrorCallbackMethodcallbackMethod to be called if request errors out
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeAsyncRequestname

executeAsyncRequest(username, password, successCallbackMethod, errorCallbackMethod, callbackExtraArgs)

...

des

...

sIndent
Execute the request method asynchronous using windows authentication.
Success callback method will be called when response is received. Response is sent as parameter in callback followed by any 'callbackExtraArgs' that were given.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out, network errors), the errorCallbackMethod is called with exception message as parameter

...

idprs

...

classsIndent

...

 followed by any 'callbackExtraArgs' that were given.
prs

Parameters

sIndentusernamethe user namepasswordthe passwordsuccessCallbackMethodcallbackMethod to be called after response is received

...

errorCallbackMethod

...

callbackMethod to be called if request errors out

...

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
method.executeAsyncRequest(globals.successCallback,globals.errorCallback)

...

classlastDetailRow

...

idexecuteAsyncRequest-Function_Function
Table Row (tr)
idname
Table Cell (td)
executeAsyncRequest
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
executeAsyncRequest
Span
(successCallbackMethod, errorCallbackMethod)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute the request method asynchronous. Success callback method will be called when response is received. Response is sent as parameter in callback. If no response is received (request errors out), the errorCallbackMethod is called with exception message as parameter.

...

idprs

...

classsIndent

...

callbackExtraArgsextra arguments that will be passed to the callback methods; can be used to identify from which request the response arrived when using the same callback method for multiple requests. Please use only simple JSON arguments (primitive types or array/objects of primitive types)clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeAsyncRequestname

executeAsyncRequest(successCallbackMethod, errorCallbackMethod)

dessIndent
Execute the request method asynchronous. Success callback method will be called when response is received.
Response is sent as parameter in callback.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out), the errorCallbackMethod is called with exception message as parameter.
prs

Parameters

sIndentsuccessCallbackMethodcallbackMethod to be called after response is receivederrorCallbackMethodcallbackMethod to be called if request errors out
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeAsyncRequestname

executeAsyncRequest(successCallbackMethod, errorCallbackMethod, callbackExtraArgs)

dessIndent
Execute the request method asynchronous using windows authentication.
Success callback method will be called when response is received. Response is sent as parameter in callback followed by any 'callbackExtraArgs' that were given.
This Response can be a response with a different status code then just 200, it could also be 500, which is still a valid response from the server, this won't go into the error callback.
So you need to test the Reponse.getStatusCode() for that to know if everything did go OK.
If no response is received (request errors out, network errors), the errorCallbackMethod is called with exception message as parameter followed by any 'callbackExtraArgs' that were given.
prs

Parameters

sIndentsuccessCallbackMethodcallbackMethod to be called after response is received

...

errorCallbackMethod

...

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
method.executeAsyncRequest(globals.successCallback,globals.errorCallback)

...

classlastDetailRow

...

idexecuteRequest
Table Row (tr)
idname
Table Cell (td)
executeRequest
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Response
Span
stylefont-weight: bold;
executeRequest
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute the request method.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Response
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var response = method.executeRequest()

...

classlastDetailRow

...

idexecuteRequest-String_String
Table Row (tr)
idname
Table Cell (td)
executeRequest
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Response
Span
stylefont-weight: bold;
executeRequest
Span
(userName, password)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute the request method.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} userName - the user name
{String} password - the password
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Response
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var response = method.executeRequest()

...

classlastDetailRow

...

idexecuteRequest-String_String_String_String
Table Row (tr)
idname
Table Cell (td)
executeRequest

...

idsig

...

Span
stylemargin-right: 5px;
Response
Span
stylefont-weight: bold;
executeRequest

...

callbackMethod to be called if request errors out

...

callbackExtraArgsextra arguments that will be passed to the callback methods; can be used to identify from which request the response arrived when using the same callback method for multiple requests. Please use only simple JSON arguments (primitive types or array/objects of primitive types)clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeRequestname

executeRequest()

dessIndent
Execute the request method.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeRequestname

executeRequest(userName, password)

dessIndent
Execute the request method.
prs

Parameters

sIndentuserNamethe user namepasswordthe password
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeRequestname

executeRequest(userName, password, workstation, domain)

...

des

...

sIndent
Execute a request method using windows authentication.

...

prs

...

Parameters

...

sIndent

...

userName

...

the user name

...

password

...

the password

...

workstation

...

The workstation the authentication request is originating from.

...

domain

...

The domain to authenticate within.

...

ret

...

Returns

...

sIndentclients

...

Supported Clients

sIndent

...

idsam

...

classlastDetailRow

...

SmartClient,WebClient,NGClientsam

Sample

...

classsIndent

...

Code Block
languagejavascript
var response = method.executeRequest('username','password','mycomputername','domain');
sIdentjavascriptlastDetailRowusePreemptiveAuthenticationname

usePreemptiveAuthentication(b)

dessIndent
Whatever to use preemptive authentication (sending the credentials in the header, avoiding the server request to
the client - useful when uploading files, as some http servers would cancel the first request from the client, if too big,
as the authentication request to the client was not yet sent)
prs

Parameters

sIndentb ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow