Package hudson.plugins.im

Examples of hudson.plugins.im.GroupChatIMMessageTarget


            // Don't know if it's true, but can't hurt, either.
            sendPresence();
           
            groupChatCache.clear();
            for (IMMessageTarget chat : this.groupChats) {
                GroupChatIMMessageTarget groupChat = (GroupChatIMMessageTarget) chat;
              try {
                getOrCreateGroupChat(groupChat);
                LOGGER.info("Joined groupchat " + groupChat.getName());
              } catch (IMException e) {
                // if we got here, the XMPP connection could be established, but probably the groupchat name
                // is invalid
                LOGGER.warning("Unable to connect to groupchat '" + groupChat.getName() + "'. Did you append @conference or so to the name?\n"
                    + "Exception: " + ExceptionHelper.dump(e));
              }
            }
          } else {
            // clean-up if needed
View Full Code Here


        if (chatNames != null) {
            for (int i = 0; i < chatNames.length; i++) {
                String chatName = chatNames[i];
                String chatPassword = Util.fixEmptyAndTrim(chatPasswords[i]);
                boolean notifyOnly = notifyOnlys != null ? "on".equalsIgnoreCase(notifyOnlys[i]) : false;
                this.defaultTargets.add(new GroupChatIMMessageTarget(chatName, chatPassword, notifyOnly));
            }
        }
    }
View Full Code Here

        }
       
        if (this.initialGroupChats != null) {
            String[] split = this.initialGroupChats.trim().split("\\s");
            for (String chatName : split) {
                this.defaultTargets.add(new GroupChatIMMessageTarget(chatName, null, false));
            }
            this.initialGroupChats = null;
        }
       
        if (!this.scrambledPasswords) {
View Full Code Here

            f = f.substring(1);
            // group chat
            if (! f.contains("@")) {
              f += "@conference." + JabberPublisher.DESCRIPTOR.getHost();
            }
            target = new GroupChatIMMessageTarget(f, null, false);
          } else if (f.contains("@conference.")) {
            target = new GroupChatIMMessageTarget(f, null, false);
          } else {
                if (!f.contains("@")) {
                    f += "@" + JabberPublisher.DESCRIPTOR.getHost();
                }
                target = new DefaultIMMessageTarget(f);
View Full Code Here

TOP

Related Classes of hudson.plugins.im.GroupChatIMMessageTarget

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.