- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Openfire源码-byjiyuqi教程
启动流程
Socket接口
Socket通信使用Mina框架实现,是XMPP协议的处理入口,具体为:
消息接收后由不同的节处理器处理:
StanzaHandler基础消息类型,之后进行消息路由:
最后通过路由表进行路由:
Http接口
Http接口用于Web端的管理以及Web客户端的通信,使用jetty实现。
通过XMPServer启动ConectionManager来管理链接启动,包括SSL,HTTP,TCP等。
消息处理流程
消息发送
消息的发送通过NIOConnection.deliver(Packet packet)实现。
模块功能列表
启动模块
RoutingTableImpl
/**
* Routing table that stores routes to client sessions, outgoing server sessions
* and components. As soon as a user authenticates with the server its client session
* will be added to the routing table. Whenever the client session becomes available
* or unavailable the routing table will be updated too.p
*
* When running inside of a cluster the routing table will also keep references to routes
* hosted in other cluster nodes. A {@link RemotePacketRouter} will be use to route packets
* to routes hosted in other cluster nodes.p
*
* Failure to route a packet will end up sending {@link IQRouter#routingFailed(JID, Packet)},
* {@link MessageRouter#routingFailed(JID, Packet)} or {@link PresenceRouter#routingFailed(JID, Packet)}
* depending on the packet type that tried to be sent.
*
* @author Gaston Dombiak
*/
AuditManager
/**
* Manages and directs server message auditing behavior. Turning on
* all auditing options can produce copious amounts of data and
* significantly slow the server as it saves the data to persistent storage.p
*
* Auditing currently saves audit data to a raw XML file
* which can later be processed and mined for information.
*
* @author Iain Shigeoka
*/
RostManager
/**
* A simple service that allows components to retrieve a roster based solely on the ID
* of the owner. Users have convenience methods for obtaining a roster associated with
* the owner. However there are many components that need to retrieve the roster
* based solely on the generic ID owner key. This interface defines a service that can
* do that. This allows classes that generically manage resource for resource owners
* (such as presence updates) to generically of
您可能关注的文档
- 中华讲师网-李国辉:中国传统礼仪.ppt
- 中华讲师网-实用沟通技能.ppt
- NTA翻译教程.doc
- 中华讲师网-李国辉:餐桌礼仪.ppt
- nuke提交教程.docx
- 中华讲师网-章燕红:垃圾食品.ppt
- 中华讲师网-李国辉:中西餐礼仪.ppt
- N分频器与设计教程.doc
- OA系统管理办法教程.doc
- O5板表面缺陷识别与处理教程.ppt
- 小平方房屋买卖合同(28篇).docx
- 渭华起义馆观后感作文500字五篇.docx
- 自然语言处理NLPTextRNN实现情感分类.docx
- 清明节继承先烈遗志演讲稿700字(24篇).docx
- 语文五年级上册第18课慈母情深部编版.docx
- Unit5Thevalueofmoneywords1单词课件高中人教版(2019)(1).pptx
- 中考英语话题复习之兴趣爱好省公开课金奖全国赛课一等奖微课获奖课件.pptx
- Unit1FestivalsandCelebrationsReadingandthinking课件-人教版高中英语.pptx
- 监狱防爆车采购合同协议.docx
- 电力服务代办合同协议.docx
文档评论(0)