Examples of Registration


Examples of reactor.event.registry.Registration

          throw new IllegalArgumentException("Only pass a single Consumer, Function, Runnable, or Callable");
        }

        final Object arg = args[0];

        Registration reg = null;
        if(Consumer.class.isInstance(arg)) {
          reg = reactor.on(sel, (Consumer)arg);
        } else if(Function.class.isInstance(arg)) {
          reg = reactor.receive(sel, (Function)arg);
        } else if(Runnable.class.isInstance(arg)) {
View Full Code Here

Examples of rocks.xmpp.extensions.register.model.Registration

     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0045.html#register">7.10 Registering with a Room</a>
     * @see RoomRegistrationForm
     */
    public DataForm getRegistrationForm() throws XmppException {
        IQ iq = new IQ(roomJid, IQ.Type.GET, new Registration());
        IQ result = xmppSession.query(iq);
        Registration registration = result.getExtension(Registration.class);
        if (registration != null) {
            return registration.getRegistrationForm();
        }
        return null;
    }
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.