Class MultiUserChatManager

    • Method Detail

      • addInvitationListener

        public void addInvitationListener​(Consumer<InvitationEvent> invitationListener)
        Adds an invitation listener, which allows to listen for inbound multi-user chat invitations.
        Parameters:
        invitationListener - The listener.
        See Also:
        removeInvitationListener(Consumer)
      • createChatService

        public ChatService createChatService​(Jid chatService)
        Creates a chat service for the specified service address.
        Parameters:
        chatService - The chat service address. Usually this is hosted at the subdomain "conference".
        Returns:
        The chat service.
      • createChatRoom

        public ChatRoom createChatRoom​(Jid roomAddress)
        Creates a chat room for the specified room address.
        Parameters:
        roomAddress - The chat room address.
        Returns:
        The chat room.
      • getItems

        public ResultSetProvider<DiscoverableItem> getItems​(Jid to,
                                                            Jid from,
                                                            String node,
                                                            Locale locale)
        Description copied from interface: ItemProvider
        Provides the result set of items, in order to manage the result set returned to the requesting entity. Requesting entities may include result set information in their request, e.g. to limit the returned items.

        If this method returns null and not other providers are found which return a non-null result for the same parameters, then Condition.ITEM_NOT_FOUND is returned to the requesting entity.

        Specified by:
        getItems in interface ItemProvider
        Parameters:
        to - The receiving entity.
        from - The requesting entity.
        node - The requested node, if any. May be null.
        locale - The locale of the requesting entity's stream or stanza.
        Returns:
        The result set provider or null, if no result set can be returned for the given parameters.
      • getNamespace

        public final String getNamespace()
        Description copied from interface: ExtensionProtocol
        The protocol's main namespace. This is used to uniquely identify the extension protocol.
        Specified by:
        getNamespace in interface ExtensionProtocol
        Returns:
        The main namespace.
      • isEnabled

        public final boolean isEnabled()
        Description copied from interface: ExtensionProtocol
        Indicates whether this protocol is enabled.
        Specified by:
        isEnabled in interface ExtensionProtocol
        Returns:
        true, if enabled; false if disabled.