Commit 91204e59 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Added more info about IQHandler.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@920 b35dd754-fafc-0310-a699-88a17e54d16e
parent 069be623
...@@ -214,8 +214,15 @@ points that are the most common: ...@@ -214,8 +214,15 @@ points that are the most common:
for sub-domains. All XMPP routing at the socket level is done using the primary server domain (example.com in the for sub-domains. All XMPP routing at the socket level is done using the primary server domain (example.com in the
example above); sub-domains are only used for routing within the XMPP server. example above); sub-domains are only used for routing within the XMPP server.
<li>Register a plugin as an IQHandler. IQ handlers respond to IQ packets with a particular element name and <li>Register a plugin as an <a href="javadoc/org/jivesoftware/messenger/IQHandler.html">IQHandler</a>. IQ handlers respond to IQ packets with a particular element name and
namespace. namespace. The following code snippet demonstrates how to register an IQHandler:
<pre>
IQHandler myHandler = new MyIQHander();
IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
iqRouter.addHandler(myHandler);
</pre>
</ol> </ol>
</p> </p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment