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

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


     */
    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 {
View Full Code Here


        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))
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

            return stanzaHandler;
        } else {
            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)) {
View Full Code Here

TOP

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

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.