<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

Atom研究(二)

2005年11月1日星期二

  在Atom研究(一)中探讨了Atom作为替代RSS的功能,本篇介绍如何在自己的Blog上加上Atom API的功能,以让你的Blog也能够通过支持Atom的客户端工具所支持。

  

  Really Simple Blogging with the Atom API中讲了使用Atom API的方法,是使用Java语言介绍的:


引用自

If you want to play with it you'll need postit.html and xmlWrapper.js in a regular directory on a web server,


with PostItServlet.java compiled in the appropriate place in a server container. [/quote]  只需要修改PostItServlet.java中的writeEntries方法,将数据写入数据库中即可完成使用Atom API写blog的功能。因这段我的事情很多,时间有限,就没有在我的blog上做这个功能,有时间的时候可能会加上。


标签:

posted by Caiwangqin, 20:22

0 Comments:

发表评论

订阅 博文评论 [Atom]

<< 主页