Examples of MultiUserChat


Examples of org.jivesoftware.smackx.muc.MultiUserChat

     */
    public ChatRoomPanel(String chatroom, String nickname, String pass) {
        this.chatroom = chatroom;
        this.nickname = nickname;
        this.pass = pass;
        chat = new MultiUserChat(BuddyList.getInstance().getConnection(),
                chatroom);

        BuddyList.getInstance().startTabFrame();

        setLayout(new BorderLayout(5, 5));
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

        for (int i = 0; i < send.size(); i++) {
            Chat chat = null;

            if (buddy instanceof MUCBuddyStatus) {
                MultiUserChat muc = ((MUCBuddyStatus) buddy).getMUC();
                chat = muc.createPrivateChat(buddy.getUser());
            } else {
                chat = (Chat) chats.get((String) send.get(i));
            }

            if (chat == null) {
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    groupchatVC.contextPut("isAjaxMode", Boolean.valueOf(ajaxOn));
    summaryVC.contextPut("isAjaxMode", Boolean.valueOf(ajaxOn));
   
    if (connection != null && connection.isConnected()) {
      try {
        muc = new MultiUserChat(connection, roomJID);
        if (anonymousInChatroom) {
          roomJoinTask = new GroupChatJoinTask(ores, muc, connection, roomJID, NICKNAME_ANONYMOUS, sanitizeRoomName(roomName), this);
        } else {
          roomJoinTask = new GroupChatJoinTask(ores, muc, connection, roomJID, getIdentity().getName(), sanitizeRoomName(roomName), this);
          rosterVC.setDirty(true);
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

      con.login(username, password);

      // Start a conversation with IMAddress
      if (chatroom) {
        LogLog.debug("About to create ChatGroup");
        groupchat = new MultiUserChat(con, (String)recipientsList.get(0));
        LogLog.debug("About to join room");
        groupchat.join(nickname != null ? nickname : username);
      } else {
        Iterator iter = recipientsList.iterator();
        while (iter.hasNext()) {
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

          xmppConnection.login(cnf.getString("xmppUser"), cnf.getString("xmppPassword", ""));
        }
        // Only do this if the connection didn't fail
        DiscussionHistory history = new DiscussionHistory();
        history.setMaxStanzas(0);
        chatRoom = new MultiUserChat(xmppConnection, cnf.getString("xmppRoom.name"));
        chatRoom.addMessageListener(this);
        chatRoom.addParticipantStatusListener(this);
        chatRoom.addSubjectUpdatedListener(this);
        chatRoom.addUserStatusListener(this);
        try {
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    protected void setUp() throws Exception {
        super.setUp();
       
        client2 = connectClient(port, TEST_USERNAME2, TEST_PASSWORD2);

        chat = new MultiUserChat(client, ROOM_JID);
        chat2 = new MultiUserChat(client2, ROOM_JID);
    }
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    protected void doStart() throws Exception {
        if (endpoint.getRoom() == null) {
            privateChat = endpoint.getConnection().getChatManager().createChat(endpoint.getParticipant(), this);
            LOG.info("Open chat to " + privateChat.getParticipant());
        } else {
            muc = new MultiUserChat(endpoint.getConnection(), endpoint.resolveRoom());
            muc.addMessageListener(this);
            DiscussionHistory history = new DiscussionHistory();
            history.setMaxChars(0); // we do not want any historical messages
            muc.join(endpoint.getNickname(), null, history, SmackConfiguration.getPacketReplyTimeout());
            LOG.info("Joined room: " + muc.getRoom());
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    }

    @Override
    protected void doStart() throws Exception {
        if (chat == null) {
            chat = new MultiUserChat(endpoint.getConnection(), room);
            DiscussionHistory history = new DiscussionHistory();
            history.setMaxChars(0); // we do not want any historical messages
            chat.join(this.endpoint.getNickname(), null, history, SmackConfiguration.getPacketReplyTimeout());
        }
        super.doStart();
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    protected void setUp() throws Exception {
        super.setUp();

        client2 = connectClient(port, TEST_USERNAME2, TEST_PASSWORD2);

        chat = new MultiUserChat(client, ROOM_JID);
        chat2 = new MultiUserChat(client2, ROOM_JID);
    }
View Full Code Here

Examples of org.jivesoftware.smackx.muc.MultiUserChat

    protected void setUp() throws Exception {
        super.setUp();

        client2 = connectClient(port, TEST_USERNAME2, TEST_PASSWORD2);

        chat = new MultiUserChat(client, ROOM_JID);
        chat2 = new MultiUserChat(client2, ROOM_JID);
    }
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.