Examples of IQRouter


Examples of org.jivesoftware.openfire.IQRouter

            component = clearspaces.get(0);
            Collections.rotate(clearspaces, 1);
        }
        packet.setTo(component);
        final LinkedBlockingQueue<IQ> answer = new LinkedBlockingQueue<IQ>(8);
        final IQRouter router = XMPPServer.getInstance().getIQRouter();
        router.addIQResultListener(packet.getID(), new IQResultListener() {
            public void receivedAnswer(IQ packet) {
                answer.offer(packet);
            }

            public void answerTimeout(String packetId) {
View Full Code Here

Examples of org.jivesoftware.openfire.IQRouter

            final EntityCapabilities caps = new EntityCapabilities();
            caps.setHashAttribute(hashAttribute);
            caps.setVerAttribute(newVerAttribute);
            verAttributes.put(packetId, caps);

            final IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
            iqRouter.addIQResultListener(packetId, this);
            iqRouter.route(iq);
        }
    }
View Full Code Here

Examples of org.jivesoftware.openfire.IQRouter

    public Collection<String> getComponentNames() {
        return componentMap.values();
    }

    private void getComponentInfo() {
        IQRouter iqRouter;
        Collection<String> components = routingTable.getComponentsDomains();
        iqRouter = server.getIQRouter();
        for (String componentDomain : components) {
            IQ iq = new IQ(IQ.Type.get);
            iq.setFrom(server.getServerInfo().getXMPPDomain());
            iq.setTo(componentDomain);
            iq.setChildElement("query", "http://jabber.org/protocol/disco#info");
            iqRouter.addIQResultListener(iq.getID(), this);
            iqRouter.route(iq);
        }
    }
View Full Code Here

Examples of org.jivesoftware.openfire.IQRouter

  @Override
  public void destroyPlugin() {
    InterceptorManager.getInstance().removeInterceptor(messageInterceptor);

    IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
    iqRouter.removeHandler(iqPEPHandler);
    iqRouter.removeHandler(iqProfileQueryHandler);
    iqRouter.removeHandler(iqProfileUpdateHandler);
    iqRouter.removeHandler(iqRelationQueryHandler);
    iqRouter.removeHandler(iqRelationSetupHandler);
    iqRouter.removeHandler(iqRelationUpdateHandler);

    if (emFactory != null) {
      emFactory.close();
    }
View Full Code Here

Examples of org.jivesoftware.openfire.IQRouter

    iqSubscribeInterceptor = new IQSubscribeInterceptor();
   

    // Add the IQ handlers to the router. This will trigger their
    // initialize method.
    IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
    iqRouter.addHandler(iqProfileQueryHandler);
    iqRouter.addHandler(iqProfileUpdateHandler);
    iqRouter.addHandler(iqRelationSetupHandler);
    iqRouter.addHandler(iqRelationUpdateHandler);
    iqRouter.addHandler(iqRelationQueryHandler);
    iqRouter.addHandler(iqPEPHandler);

    // Add the interceptor to process incoming notification messages
    InterceptorManager.getInstance().addInterceptor(messageInterceptor);
    InterceptorManager.getInstance().addInterceptor(iqSubscribeInterceptor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.