Interface InfoProvider
-
- All Known Subinterfaces:
HeaderManager
- All Known Implementing Classes:
AbstractEntityCapabilities1Protocol
,AbstractEntityCapabilities2Protocol
,AbstractEntityCapabilitiesProtocol
,ClientEntityCapabilities1Protocol
,ClientEntityCapabilities2Protocol
,ClientHeaderManager
,StanzaHeadersAndInternetMetadataProtocol
public interface InfoProvider
Provides discoverable info, so that it can be discovered via Service Discovery (disco#info).This is the pendant to
ItemProvider
.- See Also:
ItemProvider
,DiscoverableInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiscoverableInfo
getInfo(Jid to, Jid from, String node, Locale locale)
Gets the info appropriate to the given parameters.
-
-
-
Method Detail
-
getInfo
DiscoverableInfo getInfo(Jid to, Jid from, String node, Locale locale) throws StanzaErrorException
Gets the info appropriate to the given parameters.- 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.
- Throws:
StanzaErrorException
- If an error should be returned to the requesting entity.
-
-