Function
A widget for a service
This widget represents a service defined by a service description specified with 'url' attribute. If 'serviceType' and 'serviceUrl' attributes are specified, 'url' attribute can be omitted.
A
URL to a service description
A
URL to a service
A
service type
A
service handler class name
Function
Call _createHandler()
See _createHandler().
Object
Function
Create a service handler desription: A service handler class is determined by: 1. 'handlerClass' attribute 2. 'serviceType' attribute 3. 'serviceType' property in a service description
A service handler
null|Object
Function
method name
array parameters
Call a service method with parameters
Function
A REST service handler
This class serves as a base REST service. Sub-classes may override _getContent() and _getResult() to handle specific content types.
Function
method name
array of parameters
URL for the method
Call a service method with parameters.
A service is called with a URL generated by _getUrl() and an HTTP method specified with 'method'. For "POST" and "PUT", a content is generated by _getContent(). When data is loaded, _getResult() is used to pass the result to Deferred.callback().
Function
A method name
An array of parameters
A base URL
Generate a URL
If 'method' is "GET" or "DELETE", a query string is generated from a query object specified to the first parameter in 'parameters' and appended to 'url'. If 'url' contains variable seguments ("{parameter_name}"), they are replaced with corresponding parameter values, instead.
A URL
String
Function
A method name
An array of parameters
Generate a request content
If 'method' is "POST" or "PUT", the first parameter in 'parameters' is returned.
A request content
anything|null
Function
A response data returned by a service
Extract a result
A response data is returned as is.
A result object
anything
Function
A REST service handler for XML
This class provides XML handling for a REST service.
Function
A method name
An array of parameters
If 'method' is "POST" or "PUT", the first parameter in 'parameters' is used to generate an XML content.
A request content
Function
A response data returned by a service
Extract a result
A response data (XML Document) is returned wrapped with XmlElement.
A result object
Function
A REST service handler for JSON
This class provides JSON handling for a REST service.
Object
Function
A method name
An array of parameters
Generate a request content
If 'method' is "POST" or "PUT", the first parameter in 'parameter' is used to generate a JSON content.
A request content
String
Object
Object
Object