Package com.anzsoft.client.XMPP

Examples of com.anzsoft.client.XMPP.XmppPresence


      return true;
    }

    private XmppPresence createRoomPresence()
    {
      XmppPresence presence = session.getFactory().createRoomPresence();
      presence.setFrom(userId);
      presence.setTo(sessionRoomId);
      return presence;
    }
View Full Code Here


     * @see http://www.xmpp.org/extensions/xep-0045.html#enter
     */
    public void join(final XmppUser user)
    {
      userId = user.getID();
      XmppPresence presence = createRoomPresence();
      session.send(presence);
    }
View Full Code Here

     *
     * @see http://www.xmpp.org/extensions/xep-0045.html#exit
     */
    public void logout()
    {
      XmppPresence presence = createRoomPresence();
      presence.setType(XmppPresence.TYPE_UNAVAILABLE);
      session.send(presence);
    }
View Full Code Here

    session.send(message);
    }
   
    public void sendSubScription(final XmppID id,final String type,final String nick,final String status)
    {
      XmppPresence subscription = session.getFactory().createPresence();
      subscription.setTo(id);
      subscription.setType(type);
      subscription.setStatus(status);
      if(!nick.isEmpty())
      {
        //TODO : support nickname feature
      }
      session.send(subscription);     
View Full Code Here

TOP

Related Classes of com.anzsoft.client.XMPP.XmppPresence

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.