Class StanzaHeadersAndInternetMetadataProtocol

    • Constructor Detail

      • StanzaHeadersAndInternetMetadataProtocol

        public StanzaHeadersAndInternetMetadataProtocol​(ServiceDiscoveryManager serviceDiscoveryManager)
    • Method Detail

      • getSupportedHeaders

        public final Set<String> getSupportedHeaders()
        Description copied from interface: HeaderManager
        Gets the supported headers as unmodifiable set.

        If you want to advertise support for a specific header, add it to this set. Service discovery requests to the 'header' node will then reveal supported headers.

        Specified by:
        getSupportedHeaders in interface HeaderManager
        Returns:
        The supported headers.
      • 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.
      • getInfo

        public final DiscoverableInfo getInfo​(Jid to,
                                              Jid from,
                                              String node,
                                              Locale locale)
        Description copied from interface: InfoProvider
        Gets the info appropriate to the given parameters.
        Specified by:
        getInfo in interface InfoProvider
        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 info or null, if no information could be found.