Package org.apache.vysper.xmpp.modules.core.base.handler

Examples of org.apache.vysper.xmpp.modules.core.base.handler.IQHandler


    }

    public void testDisco() throws Exception {
        serverRuntimeContext.registerComponent((Component) getModule());

        IQHandler infoIQHandler = createDiscoIQHandler();

        StanzaBuilder request = buildRequest();
       
        ResponseStanzaContainer resultStanzaContainer = infoIQHandler.execute(request.build(), serverRuntimeContext, false, new TestSessionContext(serverRuntimeContext, new SessionStateHolder()), null);
        Stanza resultStanza = resultStanzaContainer.getResponseStanza();

        assertEquals("Disco request must not return error", "result", resultStanza.getAttributeValue("type"));
        XMLElement queryElement = resultStanza.getFirstInnerElement();
       
View Full Code Here


    public BaseStreamStanzaDictionary() {
        super(NamespaceURIs.HTTP_ETHERX_JABBER_ORG_STREAMS);
        register(new XMLPrologHandler());
        register(new StreamStartHandler());
        register(new IQHandler());
        register(new MessageHandler());
        register(new PresenceHandler());
        seal();
    }
View Full Code Here

    }

    public void testDisco() throws Exception {
        serverRuntimeContext.registerComponent((Component) getModule());

        IQHandler infoIQHandler = createDiscoIQHandler();

        StanzaBuilder request = buildRequest();

        ResponseStanzaContainer resultStanzaContainer = infoIQHandler.execute(request.build(), serverRuntimeContext,
                false, new TestSessionContext(serverRuntimeContext, new SessionStateHolder()), null);
        Stanza resultStanza = resultStanzaContainer.getResponseStanza();

        assertEquals("Disco request must not return error", "result", resultStanza.getAttributeValue("type"));
        XMLElement queryElement = resultStanza.getFirstInnerElement();
View Full Code Here

TOP

Related Classes of org.apache.vysper.xmpp.modules.core.base.handler.IQHandler

Copyright © 2018 www.massapicom. 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.