$root.$iremotetasks.RESTful_REMOTETASK

Parent: $root.$iremotetasks
 
Children 

Class notation

Properties Methods Events 

Properties

Object specific 
$clientaddressTCP/IP address of client
$connectbytessentNumber of bytes returned to client on connect
$connectionidConnection ID of remote task instance
$connectiontimeDate and time when remote client connected to remote task instance
$inheritedUsed when referring to a method or variable defined in a superclass
$lastresponseDate and time when remote client last communicated with remote task instance
$maxtimeThe maximum number of minutes for which the remote client is allowed to stay connected. Specify zero to indicate that there is no limit to the duration of the connection
$orderAn integer that uniquely identifies the remote task instance within the lifetime of the Omnis Server. The value will not be re-used for a different remote task until the Omnis Server is restarted. Also, values are unlikely to be incremental
$remotedebugIf true,remote debugging is allowed for this task instance and instances belonging to this task instance.Defaults to false in a new task instance
$reqcurbytesreceivedBytes received for current event (set during evBusy)
$reqcurbytessentBytes sent for current event (set during evIdle)
$reqmaxbytesreceivedLargest block of bytes received (events only)
$reqmaxbytessentLargest block of bytes sent (events only)
$reqtotbytesreceivedTotal number of bytes received (events only)
$reqtotbytessentTotal number of bytes sent (events only)
$requestsNumber of events executed
$restfulIf true,the remote task is RESTful.It can have URI objects,and be part of a RESTful API if $restfulapiname is set for the class.Read-only for instances;can only be set to kFalse in class when the remote task and superclasses have no URI objects
$restfulapinameIf not empty,the name of the RESTful API in the library containing the remote task (cannot equal $webservice for remote tasks in lib).Starts with a-z and can only contain a-z,0-9 and _
$restfulapiwillcloseIf true,the RESTful API remote task will close when the Omnis RESTful HTTP method returns.Defaults to kTrue in a new RESTful API remote task.kFalse only applies when the method executes successfully;you must eventually call $close()
$timeoutThe maximum number of minutes for which the connection to the remote client is allowed to stay idle. Specify zero to allow the connection to remain permanently idle
$unknownquerystringparamsIf unknown query string parameters are allowed,then this property is a row with a character column for each unknown parameter (the column name is the parameter name in lower case and the column value is the parameter value)
Standard$classtype $ident $isprivate $name

Methods

Object specific 
$addhttpresponseheader$addhttpresponseheader(cHeaderName,cHeaderValue) adds the specified HTTP header to the response that will be sent to a RESTful Web Service request.Note that Omnis automatically adds the Content-length header to the response
$removehttpresponseheader$removehttpresponseheader(cHeaderName[,bAll=kFalse]) removes either the last instance (or all instances) of the specified HTTP header from the response that will be sent to a RESTful Web Service request
$sendhttpcontent$sendhttpcontent(vData[,bChunk=kFalse]) Sends vData to client for a RESTful remote task (not closed see $restfulapiwillclose),optionally formatted as a chunk.vData can be bin,char,list or row (char converted to UTF-8,JSON if list or row)
$sethttpstatus$sethttpstatus(iStatusCode[,cStatusText]) sets the HTTP status code and text when executing a RESTful Web Service request. Status defaults to 200 OK if there is no call to $sethttpstatus
Standard$canclose $close

Events

evBusyRemote connection has become busy
Parameters
pEventCodeThe event code
evIdleRemote connection has become idle
Parameters
pEventCodeThe event code

Children

Top 

$iremoteforms$ivars$methods$tvars