[ 
https://issues.apache.org/jira/browse/VYSPER-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Jakl updated VYSPER-54:
-------------------------------

    Attachment: VYSPER-54.1.patch

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='ham...@denmark.lit/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='ham...@denmark.lit/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='franci...@denmark.lit' 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='berna...@denmark.lit' 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='hora...@denmark.lit' 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='b...@shakespeare.lit' 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.

Reply via email to