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

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


    public StanzaHandler getHandler(Stanza stanza) {
        if (stanza == null) return null;

        String name = stanza.getName();
        if      ("xml".equals(name)) return new XMLPrologHandler();
        else if ("stream".equals(name)) return new StreamStartHandler();
        else if (iqHandler.verify(stanza)) return getIQHandler(stanza);
        else if (messageHandler.verify(stanza)) return getMessageHandler(stanza);
        else if (presenceHandler.verify(stanza)) return getPresenceHandler(stanza);
        else {
            // this is not a core stanza (RFC3920), but something like the following
View Full Code Here


        String name = stanza.getName();
        if ("xml".equals(name))
            return new XMLPrologHandler();
        else if ("stream".equals(name))
            return new StreamStartHandler();
        else if (iqHandler.verify(stanza))
            return getIQHandler(stanza);
        else if (messageHandler.verify(stanza))
            return getMessageHandler(stanza);
        else if (presenceHandler.verify(stanza))
View Full Code Here

public class BaseStreamStanzaDictionary extends NamespaceHandlerDictionary {

    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

            String name = stanza.getName();
   
            if ("xml".equals(name)) {
                return new XMLPrologHandler();
            } else if ("stream".equals(name)) {
                return new StreamStartHandler();
            } else if ("verify".equals(name)) {
                return new DbVerifyHandler();
            } else if ("result".equals(name)) {
                return new DbResultHandler();
            } else if (iqHandler.verify(stanza)) {
View Full Code Here

TOP

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

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.