Commit 77fdc6cc authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

More informative comment for the dummyService in IQPEPHandler.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9239 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8719dbdd
...@@ -317,7 +317,10 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -317,7 +317,10 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
pubSubEngine.process(pepService, packet); pubSubEngine.process(pepService, packet);
} }
else { else {
// Process with PubSub using a dummyService. // Process with PubSub using a dummyService. In the case where an IQ packet is sent to
// a user who does not have a PEP service, we wish to utilize the error reporting flow
// already present in the PubSubEngine. Hence, the sole purpose of the dummyService is
// to forward this ill formed IQ packet to the PubSubEngine and trigger the correct error.
PEPService dummyService = new PEPService(XMPPServer.getInstance(), senderJID.toBareJID()); PEPService dummyService = new PEPService(XMPPServer.getInstance(), senderJID.toBareJID());
pubSubEngine.process(dummyService, packet); pubSubEngine.process(dummyService, packet);
} }
......
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