Class ChatService

    • Method Detail

      • createRoom

        public ChatRoom createRoom​(String room)
        Creates a new chat room. Note that this room is only created locally.
        Parameters:
        room - The room. This is the local part of the room address, e.g. room@service.
        Returns:
        The chat room.
      • getAddress

        @Deprecated
        public Jid getAddress()
        Deprecated.
        Gets the service address.
        Returns:
        The service address.
      • getJid

        public Jid getJid()
        Gets the service address.
        Specified by:
        getJid in interface Addressable
        Returns:
        The service address.
      • getName

        public String getName()
        Gets the name of this service.
        Returns:
        The name or null, if the name is unknown.
      • compareTo

        public int compareTo​(ChatService o)
        Compares this chat service first by their name and then by their service address.
        Specified by:
        compareTo in interface Comparable<ChatService>
        Parameters:
        o - The other chat service.
        Returns:
        The comparison result.