androidpn实现android消息推送功能——服务器端详解
服务器启动时加载 | |
NotificationController | 负责消息通知的类 |
NotificationManager | 负责消息通知的管理类 |
SessionManager | 管理连接服务器的session |
XmppServer | 管理整个服务器的类:加载spring-config.xml配置文件 |
Config | 配置文件类 |
ConfigManager | 管理配置文件的类 |
加载config.xml文件 |
res:<stream:stream to="192.168.1.100" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">
send:<?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="127.0.0.1" id="904a8b97" xml:lang="en" version="1.0">
SENT: <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
org.androidpn.server.xmpp.net.XmppIoHandler
org.apache.mina.transport.socket.nio.NioSocketAcceptor
org.apache.mina.filter.executor.OrderedThreadPoolExecutor 当有连接请求时
StanzaHandler
PacketRouter
MessageRouter
PresenceRouter
presenceUpdateHandler
IQRouter