class RSS::Cloud

Overview

Optional sub-element of a 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="radio.xmlstoragesystem.com" port="80" path="/RPC2" registerProcedure="xmlStorageSystem.rssPleaseNotify" protocol="xml-rpc" />

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

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

Defined in:

cryss/cloud.cr

Constructors

Instance Method Summary

Instance methods inherited from class RSS::Element

ns(name : String, &) ns, to_s(io : IO) to_s, to_xml(io : IO)
to_xml(xml : XML::Builder)
to_xml

Constructor Detail

def self.new(domain : URI | String, port : Int32, path : String, register_procedure : String, protocol : String) #

[View source]

Instance Method Detail

def domain : URI #

[View source]
def domain=(domain : URI) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]
def protocol : String #

[View source]
def protocol=(protocol : String) #

[View source]
def register_procedure : String #

[View source]
def register_procedure=(register_procedure : String) #

[View source]
def to_xml(xml : XML::Builder) #
Description copied from class RSS::Element

Writes the generated XML to the provided xml builder.


[View source]