本文整理汇总了Java中org.androidpn.server.xmpp.session.SessionManager.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java SessionManager.getInstance方法的具体用法?Java SessionManager.getInstance怎么用?Java SessionManager.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.androidpn.server.xmpp.session.SessionManager
的用法示例。
在下文中一共展示了SessionManager.getInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IQRouter
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* IQ路由
*/
public IQRouter() {
sessionManager = SessionManager.getInstance();
iqHandlers.add(new IQAuthHandler());
iqHandlers.add(new IQRegisterHandler());
iqHandlers.add(new IQRosterHandler());
iqHandlers.add(new IQDeliverConfirmHandler());
iqHandlers.add(new IQSetAliasHandler());
iqHandlers.add(new IQSetTagsHandler());
}
示例2: IQRegisterHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public IQRegisterHandler() {
info = new IQHandlerInfo("query", "jabber:iq:register");
sessionManager = SessionManager.getInstance();
userService = ServiceManager.getUserService();
probeResult = DocumentHelper.createElement(QName.get("query",
"jabber:iq:register"));
probeResult.addElement("username");
probeResult.addElement("password");
probeResult.addElement("email");
probeResult.addElement("name");
registrationEnabled = Config.getBoolean("register.inband", true);
}
示例3: IQRouter
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* Constucts a packet router registering new IQ handlers.
*/
public IQRouter() {
sessionManager = SessionManager.getInstance();
iqHandlers.add(new IQAuthHandler());
iqHandlers.add(new IQRegisterHandler());
iqHandlers.add(new IQRosterHandler());
}
示例4: IQAuthHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public IQAuthHandler() {
info = new IQHandlerInfo("query", "jabber:iq:auth");
sessionManager = SessionManager.getInstance();
probeResponse = DocumentHelper.createElement(QName.get("query",
"jabber:iq:auth"));
probeResponse.addElement("username");
if (AuthManager.isPlainSupported()) {
probeResponse.addElement("password");
}
if (AuthManager.isDigestSupported()) {
probeResponse.addElement("digest");
}
probeResponse.addElement("resource");
}
示例5: NotificationManager
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* 推送通知管理器
*/
public NotificationManager() {
sessionManager = SessionManager.getInstance();
notificationService = ServiceLocator.getNotificationService();
userService = ServiceLocator.getUserService();
}
示例6: PresenceManager
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* 用户出席信息管理类
*/
public PresenceManager() {
sessionManager = SessionManager.getInstance();
}
示例7: PresenceUpdateHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* 这个类处理出席协议.
*/
public PresenceUpdateHandler() {
sessionManager = SessionManager.getInstance();
notificationService = ServiceLocator.getNotificationService();
notificationManager = new NotificationManager();
}
示例8: IQSetAliasHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public IQSetAliasHandler() {
sessionManager = SessionManager.getInstance();
}
示例9: IQSetTagsHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public IQSetTagsHandler() {
sessionManager = SessionManager.getInstance();
}
示例10: IQHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* Constructor.
*/
public IQHandler() {
sessionManager = SessionManager.getInstance();
}
示例11: PresenceRouter
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* Presence路由
*/
public PresenceRouter() {
sessionManager = SessionManager.getInstance();
presenceUpdateHandler = new PresenceUpdateHandler();
}
示例12: PresenceRouter
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public PresenceRouter() {
sessionManager = SessionManager.getInstance();
presenceUpdateHandler = new PresenceUpdateHandler();
}
示例13: NotificationManager
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* Constructor.
*/
public NotificationManager() {
sessionManager = SessionManager.getInstance();
}
示例14: PresenceUpdateHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
/**
* Constructor.
*/
public PresenceUpdateHandler() {
sessionManager = SessionManager.getInstance();
}
示例15: IQHandler
import org.androidpn.server.xmpp.session.SessionManager; //导入方法依赖的package包/类
public IQHandler() {
sessionManager = SessionManager.getInstance();
}