Interface ItemProvider
-
- All Known Implementing Classes:
MultiUserChatManager
public interface ItemProvider
Provides items, which can be discovered via Service Discovery.- See Also:
DiscoverableItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSetProvider<DiscoverableItem>
getItems(Jid to, Jid from, String node, Locale locale)
Provides the result set of items, in order to manage the result set returned to the requesting entity.
-
-
-
Method Detail
-
getItems
ResultSetProvider<DiscoverableItem> getItems(Jid to, Jid from, String node, Locale locale) throws StanzaErrorException
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.- 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.
- Throws:
StanzaErrorException
- If an error should be returned to the requesting entity.
-
-