Class ChatRoomBookmark

    • Constructor Detail

      • ChatRoomBookmark

        public ChatRoomBookmark​(String name,
                                Jid room)
        Creates a conference bookmark.
        Parameters:
        name - The bookmark name.
        room - The JID of the chat room.
      • ChatRoomBookmark

        public ChatRoomBookmark​(String name,
                                Jid room,
                                String nick,
                                String password,
                                boolean autojoin)
        Creates a conference bookmark.
        Parameters:
        name - The bookmark name.
        room - The JID of the chat room.
        nick - The user's preferred roomnick for the chatroom.
        password - The unencrypted string for the password needed to enter a password-protected room. See also getPassword().
        autojoin - Whether the client should automatically join the conference room on login.
    • Method Detail

      • getNick

        public final String getNick()
        Gets the user's preferred roomnick for the chatroom.
        Specified by:
        getNick in interface ConferenceBookmark
        Returns:
        The nick.
      • getPassword

        public final String getPassword()
        Gets the unencrypted string for the password needed to enter a password-protected room. For security reasons, use of this element is NOT RECOMMENDED.
        Specified by:
        getPassword in interface ConferenceBookmark
        Returns:
        The password.
      • isAutojoin

        public final boolean isAutojoin()
        Gets whether the client should automatically join the conference room on login.
        Specified by:
        isAutojoin in interface ConferenceBookmark
        Returns:
        True, if the client should automatically join the conference room on login.
      • getRoom

        public final Jid getRoom()
        Gets the JID of the chat room.
        Returns:
        The room.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object