[
https://issues.apache.org/jira/browse/VYSPER-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714930#action_12714930
]
Michael Jakl edited comment on VYSPER-54 at 5/31/09 2:41 PM:
-------------------------------------------------------------
Full patch against rev778637 (including patches from VYSPER-53).
Changes:
Switch from node name to full jid for accessing a node.
Addes publish base use-case
New namespace for event messages to subscriber
was (Author: mjakl):
Full patch against rev778637 (including patches from VYSPER-53).
> Publish to a node (XEP-0060 7.1)
> --------------------------------
>
> Key: VYSPER-54
> URL: https://issues.apache.org/jira/browse/VYSPER-54
> Project: VYSPER
> Issue Type: Sub-task
> Reporter: Michael Jakl
> Assignee: Michael Jakl
> Attachments: VYSPER-54.1.patch
>
>
> The main use case for the pubsub service is of course publishing and
> distribution of messages.
> <iq type='set'
> from='[email protected]/blogbot'
> to='pubsub.shakespeare.lit'
> id='publish1'>
> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
> <publish node='princely_musings'>
> <item id='bnd81g37d61f49fgn581'>
> <entry xmlns='http://www.w3.org/2005/Atom'>
> <title>Soliloquy</title>
> <summary>
> To be, or not to be: that is the question:
> Whether 'tis nobler in the mind to suffer
> The slings and arrows of outrageous fortune,
> Or to take arms against a sea of troubles,
> And by opposing end them?
> </summary>
> <link rel='alternate' type='text/html'
> href='http://denmark.lit/2003/12/13/atom03'/>
> <id>tag:denmark.lit,2003:entry-32397</id>
> <published>2003-12-13T18:30:02Z</published>
> <updated>2003-12-13T18:30:02Z</updated>
> </entry>
> </item>
> </publish>
> </pubsub>
> </iq>
> Answer from the server:
> <iq type='result'
> from='pubsub.shakespeare.lit'
> to='[email protected]/blogbot'
> id='publish1'>
> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
> <publish node='princely_musings'>
> <item id='ae890ac52d0df67ed7cfdf51b644e901'/>
> </publish>
> </pubsub>
> </iq>
> Notification of subscriber (with payload):
> Example 93. Subscribers receive event notifications with payloads
> <message from='pubsub.shakespeare.lit' to='[email protected]' id='foo'>
> <event xmlns='http://jabber.org/protocol/pubsub#event'>
> <items node='princely_musings'>
> <item id='ae890ac52d0df67ed7cfdf51b644e901'>
> <entry xmlns='http://www.w3.org/2005/Atom'>
> <title>Soliloquy</title>
> <summary>
> To be, or not to be: that is the question:
> Whether 'tis nobler in the mind to suffer
> The slings and arrows of outrageous fortune,
> Or to take arms against a sea of troubles,
> And by opposing end them?
> </summary>
> <link rel='alternate' type='text/html'
> href='http://denmark.lit/2003/12/13/atom03'/>
> <id>tag:denmark.lit,2003:entry-32397</id>
> <published>2003-12-13T18:30:02Z</published>
> <updated>2003-12-13T18:30:02Z</updated>
> </entry>
> </item>
> </items>
> </event>
> </message>
> <message from='pubsub.shakespeare.lit' to='[email protected]' id='bar'>
> <event xmlns='http://jabber.org/protocol/pubsub#event'>
> <items node='princely_musings'>
> <item id='ae890ac52d0df67ed7cfdf51b644e901'>
> <entry xmlns='http://www.w3.org/2005/Atom'>
> <title>Soliloquy</title>
> <summary>
> To be, or not to be: that is the question:
> Whether 'tis nobler in the mind to suffer
> The slings and arrows of outrageous fortune,
> Or to take arms against a sea of troubles,
> And by opposing end them?
> </summary>
> <link rel='alternate' type='text/html'
> href='http://denmark.lit/2003/12/13/atom03'/>
> <id>tag:denmark.lit,2003:entry-32397</id>
> <published>2003-12-13T18:30:02Z</published>
> <updated>2003-12-13T18:30:02Z</updated>
> </entry>
> </item>
> </items>
> </event>
> </message>
> <message from='pubsub.shakespeare.lit' to='[email protected]' id='baz'>
> <event xmlns='http://jabber.org/protocol/pubsub#event'>
> <items node='princely_musings'>
> <item id='ae890ac52d0df67ed7cfdf51b644e901'>
> <entry xmlns='http://www.w3.org/2005/Atom'>
> <title>Soliloquy</title>
> <summary>
> To be, or not to be: that is the question:
> Whether 'tis nobler in the mind to suffer
> The slings and arrows of outrageous fortune,
> Or to take arms against a sea of troubles,
> And by opposing end them?
> </summary>
> <link rel='alternate' type='text/html'
> href='http://denmark.lit/2003/12/13/atom03'/>
> <id>tag:denmark.lit,2003:entry-32397</id>
> <published>2003-12-13T18:30:02Z</published>
> <updated>2003-12-13T18:30:02Z</updated>
> </entry>
> </item>
> </items>
> </event>
> </message>
> <message from='pubsub.shakespeare.lit' to='[email protected]' id='fez'>
> <event xmlns='http://jabber.org/protocol/pubsub#event'>
> <items node='princely_musings'>
> <item id='ae890ac52d0df67ed7cfdf51b644e901'>
> <entry xmlns='http://www.w3.org/2005/Atom'>
> <title>Soliloquy</title>
> <summary>
> To be, or not to be: that is the question:
> Whether 'tis nobler in the mind to suffer
> The slings and arrows of outrageous fortune,
> Or to take arms against a sea of troubles,
> And by opposing end them?
> </summary>
> <link rel='alternate' type='text/html'
> href='http://denmark.lit/2003/12/13/atom03'/>
> <id>tag:denmark.lit,2003:entry-32397</id>
> <published>2003-12-13T18:30:02Z</published>
> <updated>2003-12-13T18:30:02Z</updated>
> </entry>
> </item>
> </items>
> </event>
> </message>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.