Commit c117c03a authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

CS-4469 - Send acknowledgement to Clearspace when we recieve its component...

 CS-4469 - Send acknowledgement to Clearspace when we recieve its component disco#info. Fixes usage of ClearspaceComponent.componentRegistered() in Clearspace.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10402 b35dd754-fafc-0310-a699-88a17e54d16e
parent 95e74479
...@@ -1093,9 +1093,20 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM ...@@ -1093,9 +1093,20 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
// If component is Clearspace then keep track of the component // If component is Clearspace then keep track of the component
if (isClearspace) { if (isClearspace) {
clearspaces.add(iq.getFrom().getDomain()); clearspaces.add(iq.getFrom().getDomain());
// Now send acknowledgement to Clearspace that we received its info
acknowledgeInfoReceived(iq.getFrom());
} }
} }
private void acknowledgeInfoReceived(JID infoSender) {
IQ iq = new IQ();
iq.setTo(infoSender);
iq.setFrom(XMPPServer.getInstance().getServerInfo().getXMPPDomain());
iq.setID("component_info_recvd_" + StringUtils.randomString(3));
iq.setChildElement("component-info-recvd", "http://jivesoftware.com/clearspace");
getInstance().query(iq, 30000);
}
/** /**
* Returns a nonce generated by Clearspace to be used in a SSO login. * Returns a nonce generated by Clearspace to be used in a SSO login.
* *
......
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