Examples of endInnerElement()


Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

            for (RosterItem rosterItem : rosterItems) {
                createRosterItem(stanzaBuilder, rosterItem);
            }

        stanzaBuilder.endInnerElement();

        return stanzaBuilder;
    }

    public static Stanza createRosterItemPushIQ(Entity to, String id, RosterItem rosterItem) {
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        String id = idGenerator.create();
        node.subscribe(id, subJID);

        buildSuccessStanza(sb, nodeName, strSubJID, id);

        sb.endInnerElement(); // pubsub
        return new IQStanza(sb.build());
    }

    /**
     * This method adds the default "success" elements to the given StanzaBuilder.
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

    public void testStanzaError() throws ParsingException {
        StanzaBuilder builder = new StanzaBuilder("iq");
        builder.addAttribute("to", SERVER_JID);
        builder.addAttribute("from", CLIENT_JID);
        builder.startInnerElement("ping", NamespaceURIs.URN_XMPP_PING);
        builder.endInnerElement();
       
        Stanza request = builder.build();
        IQStanza requestIq = new IQStanza(request);

        ServerErrorResponses serverErrorResponses = ServerErrorResponses.getInstance();
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        stanzaBuilder.addAttribute(NamespaceURIs.XML, "lang", lang);
        stanzaBuilder.startInnerElement("event");
        stanzaBuilder.startInnerElement("items");
        stanzaBuilder.addAttribute("node", nodeName);
        stanzaBuilder.addPreparedElement(item);
        stanzaBuilder.endInnerElement(); // items
        stanzaBuilder.endInnerElement(); // event
        return stanzaBuilder.build();
    }

}
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        stanzaBuilder.startInnerElement("event");
        stanzaBuilder.startInnerElement("items");
        stanzaBuilder.addAttribute("node", nodeName);
        stanzaBuilder.addPreparedElement(item);
        stanzaBuilder.endInnerElement(); // items
        stanzaBuilder.endInnerElement(); // event
        return stanzaBuilder.build();
    }

}
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        StanzaBuilder stanzaBuilder = StanzaBuilder.createIQStanza(client, pubsub, getStanzaType(), id);
        stanzaBuilder.startInnerElement("pubsub", getNamespace());

        buildInnerElement(client, pubsub, stanzaBuilder, node);

        stanzaBuilder.endInnerElement();

        return stanzaBuilder.build();
    }
}
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        public Stanza getStanza(Entity client, Entity pubsub, String id) {
            StanzaBuilder stanzaBuilder = StanzaBuilder.createIQStanza(client, pubsub, getStanzaType(), id);
            stanzaBuilder.startInnerElement("query", getNamespace());

            stanzaBuilder.endInnerElement();

            return stanzaBuilder.build();
        }
       
        @Override
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        public Stanza getStanza(Entity client, Entity pubsub, String id, String node) {
            StanzaBuilder stanzaBuilder = StanzaBuilder.createIQStanza(client, pubsub, getStanzaType(), id);
            stanzaBuilder.startInnerElement("query", getNamespace());
            stanzaBuilder.addAttribute("node", node);

            stanzaBuilder.endInnerElement();

            return stanzaBuilder.build();
        }
    }
}
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

    public void testStanzaError() throws ParsingException {
        StanzaBuilder builder = new StanzaBuilder("iq");
        builder.addAttribute("to", SERVER_JID);
        builder.addAttribute("from", CLIENT_JID);
        builder.startInnerElement("ping", NamespaceURIs.URN_XMPP_PING);
        builder.endInnerElement();

        Stanza request = builder.build();
        IQStanza requestIq = new IQStanza(request);

        ServerErrorResponses serverErrorResponses = ServerErrorResponses.getInstance();
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        }
        for (InfoElement infoElement : elements) {
            infoElement.insertElement(stanzaBuilder);
        }

        stanzaBuilder.endInnerElement();

        return stanzaBuilder.build();
    }
}
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.