Pushlet白皮书

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Pushlet白皮书中英文对照周健zhoujianqinfen@yahoo.com.cn昆明理工大学2010-1-15最近在学习pushlet的时候,深感中文文档缺乏。我在参照pushlet官网上的白皮书,以及搜索网上其他先驱者的翻译资料,还加上自己的一些翻译特整理而成,由于水平有限,不正确之处,请大家见谅。本文中英文对照,方便大家学习参考,制作纯属个人学习与交流之用,大家可以自由传载,不得用于商业用途。1.介绍(Introduction)......................................................................................................................32.动机(Motivation)........................................................................................................................43.通知解决(NotificationSolutions)...............................................................................................53.1轮询(Polling).......................................................................................................................63.2服务器端回调(Server-sidecallbacks).................................................................................63.3消息(MessagingMOM).....................................................................................................63.4讨论(Discussion).................................................................................................................74.pushlet基础(PushletBasics)......................................................................................................84.1HTTP流(HTTPStreaming)....................................................................................................94.2示例1(Example1)...............................................................................................................94.3示例2(Example2).............................................................................................................105.不仅Java-动态超文本标记语言(NotjustJava-DynamicHTML).........................................146.框架设计(DesignoftheFramework).......................................................................................166.1.服务器端类设计Server-sideclassdesign.....................................................................186.1.1.场景:事件订阅(Scenario:EventSubscription).................................................206.1.2.场景:发送和派分事件Scenario:SendingandDispatchingEvents....................226.2.客户端框架Client-sideframework.................................................................................247.应用(Applications)....................................................................................................................277.1.监控Monitoring.............................................................................................................287.2.游戏Gaming...................................................................................................................287.3.分布式模型-视图-控制器DistributedModelViewController(MVC)...........................287.4.Web表现层WebPresentations......................................................................................297.5.用户辅助UserAssistance..............................................................................................307.6.社区工具CommunityTools............................................................................................318.倾向(Liabilities).........................................................................................................................318.1.优点Advantages.............................................................................................................318.2.缺点Disadvantages.........................................................................................................329.更进一步的工作(FurtherWork)..............................................................................................339.1.额外的客户端接收协议:例如TCP和UDP(Additionalclientreceiver-protocolssuchasTCPandUDP).......................................................................................................................339.2.额外的服务器端发送协议additionalclientsender-protocols.....................................349.3.主题状态subjectstate...................................................................................................349.4.多用户multi-user...........................................................................................................3510.参考(References)....................................................................................................................351.介绍(Introduction)Server-sidenotificationtobrowser-clientsisoftenimplementedusingappletswithRMI,CORBAorcustomTCP/IPmessaging.Thesetechniquesareoftencomplextoimplement,havefirewallrestrictions,andrequireadditionalserverdevelopment/maintenance.Alsoitishardtointegratethestateoftheclient-appletwiththebrowser'spage-contentotherthanrefreshingthepageordoingallcontent-layoutwithintheapplet.Server端向浏览器client发送通知这种通讯模式通常采用RMI、CORBA或者自定义TCP/IP信息来实现。这些技术往往由于复杂而难以实现:存在防火墙限制(因为需要打开非HTTP的通讯端口)、需要额外的server开发和维护。并且除了刷新整个页面或者完全采用applet展示内容之外,很难找到别的方法将client端applet的状态和浏览器的页面内容集成在一起。Pushletsareaservlet-basedmechanismwheredataispusheddirectlyfromserver-sideJavaobjectsto(Dynamic)HTMLpageswithinaclient-browserwithoutusingJavaappletsorplug-ins.Thisallowsawebpagetobeperiodicallyupdatedbytheserver.ThebrowserclientusesJavaScr

1 / 35
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功