class RSS::Cloud
- RSS::Cloud
- RSS::Element
- Reference
- Object
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.crConstructors
Instance Method Summary
- #domain : URI
- #domain=(domain : URI)
- #path : String
- #path=(path : String)
- #port : Int32
- #port=(port : Int32)
- #protocol : String
- #protocol=(protocol : String)
- #register_procedure : String
- #register_procedure=(register_procedure : String)
-
#to_xml(xml : XML::Builder)
Writes the generated XML to the provided xml builder.
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)
#
Instance Method Detail
def to_xml(xml : XML::Builder)
#
Description copied from class RSS::Element
Writes the generated XML to the provided xml builder.