* Makes this modules available via disco#items and returns the associated nodes.
*
* @see ItemRequestListener#getItemsFor(InfoRequest)
*/
public List<Item> getItemsFor(InfoRequest request) throws ServiceDiscoveryRequestException {
Entity to = request.getTo();
if (to.getNode() == null) {
// react on request send to server domain or this subdomain, but not to others
if(fullDomain.equals(to)) {
List<Item> conferenceItems = conference.getItemsFor(request);
return conferenceItems;
} else if (serverRuntimeContext.getServerEnitity().equals(to)) {
List<Item> componentItem = new ArrayList<Item>();
componentItem.add(new Item(fullDomain));
return componentItem;
}
return null;
} else if (fullDomain.getDomain().equals(to.getDomain())) {
// might be an items request on a room
Room room = conference.findRoom(to.getBareJID());
if (room != null) {
if (to.getResource() != null) {
// request for an occupant
Occupant occupant = room.findOccupantByNick(to.getResource());
// request for occupant, relay
if (occupant != null) {
relayDiscoStanza(occupant.getJid(), request, NamespaceURIs.XEP0030_SERVICE_DISCOVERY_ITEMS);
}
} else {