Lincoln Stoll contact github

Google App Engine XMPP in Play Framework

8/6/2010

Google’s documentation for receiving XMPP messages on App Engine involves running the HttpServletRequest through XMPPServiceFactory.parseMessage to extract the details, however on Play you don’t get access to the HttpServletRequest, so you can’t use their message parser. Fortunately the message is really just POSTed form data, so you can easily extract it in a handler bound to “POST /_ah/xmpp/message/chat/” like this:


blog comments powered by Disqus
Lincoln Stoll
Australia
+61404258258
Jabber

This hCard created with the hCard creator.