Cloud

data class Cloud(    var domain: String,     var port: Int,     var path: String,     var registerProcedure: String,     var protocol: Cloud.Protocol)

<cloud> is an optional sub-element of <channel>.

It specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1.

Its purpose is to allow processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.

<cloud
domain="rpc.sys.com"
port="80"
path="/RPC2"
registerProcedure="myCloud.rssPleaseNotify"
protocol="xml-rpc" />

In this example, to request notification on the channel it appears in, you would send an XML-RPC message to rpc.sys.com on port 80, with a path of /RPC2. The procedure to call is myCloud.rssPleaseNotify.

A full explanation of this element and the rssCloud interface is here.

Constructors

Link copied to clipboard
fun Cloud(    domain: String,     port: Int,     path: String,     registerProcedure: String,     protocol: Cloud.Protocol)

Types

Link copied to clipboard
enum Protocol : Enum<Cloud.Protocol>

Properties

Link copied to clipboard
var domain: String

A list of URLs of RSS documents that the client seeks to monitor. Multiple cloud tags are allowed in a channel.

Link copied to clipboard
var path: String

The client's remote procedure call path

Link copied to clipboard
var port: Int

The client's TCP port

Link copied to clipboard
var protocol: Cloud.Protocol

The string "xml-rpc" if the client employs XML-RPC, "soap" for SOAP and "http-post" for REST.

Link copied to clipboard
var registerProcedure: String

The name of the remote procedure the cloud should call on the client upon an update

Sources

Link copied to clipboard