如何使用 XMPP 和 google appengine 获取 gtalk 用户的用户名?

发布于 2024-08-28 19:50:14 字数 286 浏览 1 评论 0原文

我正在使用 google appengine 作为我的 gtalk 代理,我想获取 gtalk 用户的用户名,如何获取它?

供您参考,检查一下

XMPPService xmpp = XMPPServiceFactory.getXMPPService();
    //STEP 2
    Message msg = xmpp.parseMessage(req);
    JID fromJid = msg.getFromJid();

我一开始就使用上面的东西......

I am using google appengine for my gtalk agent , I want to get the username of the gtalk user how can I get it ?

for your reference, check this

XMPPService xmpp = XMPPServiceFactory.getXMPPService();
    //STEP 2
    Message msg = xmpp.parseMessage(req);
    JID fromJid = msg.getFromJid();

I am using the above things in the beginning .....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩发小公举 2024-09-04 19:50:14

JID user@ 组成域/资源。该资源是可选的,并提供有关用户如何通信的更多信息(例如桌面或客户端应用程序)。

编辑:请参阅 Java JID类

The JID is composed of user@domain/resource. The resource is optional, and provides more information about how the user is communicating (e.g. desktop or client app).

EDIT: See the Java JID class

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文