viewer_contribution.atom.sample 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. +========================================================================+
  4. | IBM Confidential
  5. | OCO Source Materials
  6. | IBM Cognos Products: BUX
  7. | (C) Copyright IBM Corp. 2009, 2010
  8. |
  9. | The source code for this program is not published or otherwise
  10. | divested of its trade secrets, irrespective of what has been deposited
  11. | with the U.S. Copyright Office.
  12. +========================================================================+
  13. -->
  14. <atom:feed xmlns:atom="http://www.w3.org/2005/Atom">
  15. <!-- this entry defines a typed viewer contribution -->
  16. <atom:entry>
  17. <!-- standard ATOM tombstone information -->
  18. <atom:published>2009-03-24T22:01:37Z</atom:published>
  19. <atom:id>tag:ibm.cognos.icd.com,2009-08-23:/sample/bogus/typedfeed</atom:id>
  20. <atom:updated>2009-03-24T22:01:37Z</atom:updated>
  21. <!-- this category marks this entry as a typed feed contribution -->
  22. <atom:category scheme="http://www.ibm.com/xmlns/prod/cognos/icd/contribution#type" term="typedviewer">
  23. <!-- This element identifies the type of object that will be augmented with
  24. this typed feed. -->
  25. <contrib:associatedtype xmlns:contrib="http://www.ibm.com/xmlns/prod/cognos/icd/contribution">com.ibm.cognos.om85/pagelet/1</contrib:associatedtype>
  26. </atom:category>
  27. <!-- title and summary are required to make this a valid ATOM entry,
  28. but are currently ignored. -->
  29. <atom:title type="text">ignored</atom:title>
  30. <atom:summary>ignored</atom:summary>
  31. <atom:link title="{sample:toolbox_link_title}" rel="alternate" type="application/x-iwidget+xml" href="{cgi}/icd/feeds/ext/jim/viewer/jims_widget.xml">
  32. <!-- Configure a mapping from the bux remote atom provider to the external
  33. resource. externalFeedMappings are required only when you want the BUX remote atom provider
  34. involved in handling the request for the typed viewer. The remote provider can
  35. be used like a proxy to get a resource that is on another server, to avoid
  36. cross-domain problems. In this sample the widget is served by another
  37. server on the local machine, but is accessed through the BUX remote provider. We
  38. have to tell the remote provider that requests for /ext/jim/viewer are proxied
  39. to http://localhost:8080/iwidgets/jims_widget
  40. If the widget is served through the same domain/gateway as BUX this mapping is not necessary,
  41. but the bux remote provider does useful things like transforming the result into JSON. -->
  42. <contrib:externalFeedMapping xmlns:contrib="http://www.ibm.com/xmlns/prod/cognos/icd/contribution">
  43. <local>/ext/jim/viewer</local>
  44. <remote>http://localhost:8080/iwidgets/jims_widget</remote>
  45. </contrib:externalFeedMapping>
  46. </atom:link>
  47. <!-- other links for icons, etc. More docs are needed. -->
  48. <atom:link rel="http://www.ibm.com/xmlns/prod/cognos/rel/icon16" type="image/gif" href="{web}/icd/feeds/images/icon_portlet_rich_text.gif"/>
  49. <atom:link rel="http://www.ibm.com/xmlns/prod/cognos/rel/icon64" type="image/gif" href="{web}/icd/feeds/images/icon_portlet_rich_text_64.gif"/>
  50. <atom:link rel="http://www.ibm.com/xmlns/prod/cognos/rel/thumbnail" type="image/gif" href="{web}/icd/feeds/images/icon_portlet_rich_text_64.gif"/>
  51. </atom:entry>
  52. </atom:feed>