Package com.google.appengine.api.xmpp

Examples of com.google.appengine.api.xmpp.SubscriptionBuilder


        // value of the subscription, added by the routing logic as request parameter
        String value = request.getParameter("value");

        @SuppressWarnings("rawtypes") Map formData = parseXmppFormData(request);

        return new SubscriptionBuilder()
                .withFromJid(new JID((String) formData.get("from")))
                .withToJid(new JID((String) formData.get("to")))
                .withSubscriptionType(SubscriptionType.valueOf(value.toUpperCase()))
                .build();
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.xmpp.SubscriptionBuilder

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.