本文整理汇总了Java中org.jivesoftware.openfire.IQHandlerInfo类的典型用法代码示例。如果您正苦于以下问题:Java IQHandlerInfo类的具体用法?Java IQHandlerInfo怎么用?Java IQHandlerInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IQHandlerInfo类属于org.jivesoftware.openfire包,在下文中一共展示了IQHandlerInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: IQAuthHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
/**
* Clients are not authenticated when accessing this handler.
*/
public IQAuthHandler() {
super("XMPP Authentication handler");
info = new IQHandlerInfo("query", "jabber:iq:auth");
probeResponse = DocumentHelper.createElement(QName.get("query", "jabber:iq:auth"));
probeResponse.addElement("username");
if (AuthFactory.isPlainSupported()) {
probeResponse.addElement("password");
}
if (AuthFactory.isDigestSupported()) {
probeResponse.addElement("digest");
}
probeResponse.addElement("resource");
anonymousAllowed = JiveGlobals.getBooleanProperty("xmpp.auth.anonymous");
}
开发者ID:idwanglu2010,项目名称:openfire,代码行数:19,代码来源:IQAuthHandler.java
示例2: IQVersionHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQVersionHandler() {
super("XMPP Server Version Handler");
info = new IQHandlerInfo("query", "jabber:iq:version");
if (bodyElement == null) {
bodyElement = DocumentHelper.createElement(QName.get("query", "jabber:iq:version"));
bodyElement.addElement("name").setText(AdminConsole.getAppName());
bodyElement.addElement("version").setText(AdminConsole.getVersionString());
}
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:10,代码来源:IQVersionHandler.java
示例3: IQTimeHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQTimeHandler() {
super("XMPP Server Time Handler");
info = new IQHandlerInfo("query", "jabber:iq:time");
responseElement = DocumentHelper.createElement(QName.get("query", "jabber:iq:time"));
responseElement.addElement("utc");
responseElement.addElement("tz").setText(TIME_FORMAT.getTimeZone().getDisplayName());
responseElement.addElement("display");
}
开发者ID:coodeer,项目名称:g3server,代码行数:9,代码来源:IQTimeHandler.java
示例4: IQDiscoInfoHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQDiscoInfoHandler() {
super("XMPP Disco Info Handler");
info = new IQHandlerInfo("query", NAMESPACE_DISCO_INFO);
// Initialize the user identity and features collections (optimization to avoid creating
// the same objects for each response)
Element userIdentity = DocumentHelper.createElement("identity");
userIdentity.addAttribute("category", "account");
userIdentity.addAttribute("type", "anonymous");
anonymousUserIdentities.add(userIdentity);
userIdentity = DocumentHelper.createElement("identity");
userIdentity.addAttribute("category", "account");
userIdentity.addAttribute("type", "registered");
registeredUserIdentities.add(userIdentity);
userFeatures.add(NAMESPACE_DISCO_INFO);
}
开发者ID:idwanglu2010,项目名称:openfire,代码行数:16,代码来源:IQDiscoInfoHandler.java
示例5: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo()
{
return new IQHandlerInfo("request", "http://igniterealtime.org/protocol/ofmeet");
}
开发者ID:igniterealtime,项目名称:ofmeet-openfire-plugin,代码行数:6,代码来源:OfMeetIQHandler.java
示例6: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_MSG_PUSH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MMXPushNSHandler.java
示例7: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_MSG_WAKEUP);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MMXWakeupNSHandler.java
示例8: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_MSG_STATE);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MessageStateHandler.java
示例9: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_MSG_ACK);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MsgAckIQHandler.java
示例10: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo("reg", Constants.MMX_NS_USER);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MMXUserHandler.java
示例11: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_PUBSUB);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:MMXPubSubHandler.java
示例12: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX_APP_REG, Constants.MMX_NS_APP);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:AppHandler.java
示例13: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return new IQHandlerInfo(Constants.MMX, Constants.MMX_NS_DEV);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:5,代码来源:DeviceHandler.java
示例14: AdHocCommandHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public AdHocCommandHandler() {
super("Ad-Hoc Commands Handler");
info = new IQHandlerInfo("command", NAMESPACE);
manager = new AdHocCommandManager();
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:6,代码来源:AdHocCommandHandler.java
示例15: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQHandlerInfo getInfo() {
return info;
}
开发者ID:idwanglu2010,项目名称:openfire,代码行数:4,代码来源:FileTransferProxy.java
示例16: IQOfflineMessagesHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQOfflineMessagesHandler() {
super("Flexible Offline Message Retrieval Handler");
info = new IQHandlerInfo("offline", NAMESPACE);
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:5,代码来源:IQOfflineMessagesHandler.java
示例17: IQLastActivityHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQLastActivityHandler() {
super("XMPP Last Activity Handler");
info = new IQHandlerInfo("query", NAMESPACE);
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:5,代码来源:IQLastActivityHandler.java
示例18: IQBindHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQBindHandler() {
super("Resource Binding handler");
info = new IQHandlerInfo("bind", "urn:ietf:params:xml:ns:xmpp-bind");
}
开发者ID:idwanglu2010,项目名称:openfire,代码行数:5,代码来源:IQBindHandler.java
示例19: getInfo
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
@Override
public IQHandlerInfo getInfo() {
return info;
}
开发者ID:coodeer,项目名称:g3server,代码行数:5,代码来源:IQDiscoItemsHandler.java
示例20: IQPrivateHandler
import org.jivesoftware.openfire.IQHandlerInfo; //导入依赖的package包/类
public IQPrivateHandler() {
super("XMPP Private Storage Handler");
info = new IQHandlerInfo("query", "jabber:iq:private");
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:5,代码来源:IQPrivateHandler.java
注:本文中的org.jivesoftware.openfire.IQHandlerInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论