2004-05-09 21:11:58 +02:00
|
|
|
/**
|
2004-11-03 00:37:00 +01:00
|
|
|
* $RCSfile$
|
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
*
|
2007-02-12 01:59:05 +01:00
|
|
|
* Copyright 2003-2007 Jive Software.
|
2004-11-03 00:37:00 +01:00
|
|
|
*
|
|
|
|
* All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2004-05-09 21:11:58 +02:00
|
|
|
|
|
|
|
package org.jivesoftware.smackx;
|
|
|
|
|
2013-03-18 09:40:35 +01:00
|
|
|
import org.jivesoftware.smack.packet.PacketExtension;
|
2006-10-16 19:56:48 +02:00
|
|
|
import org.jivesoftware.smackx.packet.DiscoverInfo;
|
2006-07-18 07:14:33 +02:00
|
|
|
import org.jivesoftware.smackx.packet.DiscoverItems;
|
|
|
|
|
2006-10-16 19:56:48 +02:00
|
|
|
import java.util.List;
|
2004-05-09 21:11:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2006-10-16 19:56:48 +02:00
|
|
|
* The NodeInformationProvider is responsible for providing supported indentities, features
|
|
|
|
* and hosted items (i.e. DiscoverItems.Item) about a given node. This information will be
|
|
|
|
* requested each time this XMPPP client receives a disco info or items requests on the
|
|
|
|
* given node. each time this XMPPP client receives a disco info or items requests on the
|
|
|
|
* given node.
|
2006-07-10 18:56:14 +02:00
|
|
|
*
|
2004-05-09 21:11:58 +02:00
|
|
|
* @author Gaston Dombiak
|
|
|
|
*/
|
|
|
|
public interface NodeInformationProvider {
|
2013-03-18 09:40:35 +01:00
|
|
|
|
2004-05-09 21:11:58 +02:00
|
|
|
/**
|
2006-10-16 19:56:48 +02:00
|
|
|
* Returns a list of the Items {@link org.jivesoftware.smackx.packet.DiscoverItems.Item}
|
2004-06-04 20:52:10 +02:00
|
|
|
* defined in the node. For example, the MUC protocol specifies that an XMPP client should
|
|
|
|
* answer an Item for each joined room when asked for the rooms where the use has joined.
|
2004-05-09 21:11:58 +02:00
|
|
|
*
|
2006-10-16 19:56:48 +02:00
|
|
|
* @return a list of the Items defined in the node.
|
2004-05-09 21:11:58 +02:00
|
|
|
*/
|
2006-10-16 19:56:48 +02:00
|
|
|
public abstract List<DiscoverItems.Item> getNodeItems();
|
2004-05-09 21:11:58 +02:00
|
|
|
|
2006-07-10 18:56:14 +02:00
|
|
|
/**
|
2006-10-16 19:56:48 +02:00
|
|
|
* Returns a list of the features defined in the node. For
|
2006-07-10 18:56:14 +02:00
|
|
|
* example, the entity caps protocol specifies that an XMPP client
|
|
|
|
* should answer with each feature supported by the client version
|
|
|
|
* or extension.
|
|
|
|
*
|
2006-10-16 19:56:48 +02:00
|
|
|
* @return a list of the feature strings defined in the node.
|
2006-07-10 18:56:14 +02:00
|
|
|
*/
|
2006-10-16 19:56:48 +02:00
|
|
|
public abstract List<String> getNodeFeatures();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a list of the indentites defined in the node. For
|
|
|
|
* example, the x-command protocol must provide an identity of
|
|
|
|
* category automation and type command-node for each command.
|
|
|
|
*
|
|
|
|
* @return a list of the Identities defined in the node.
|
|
|
|
*/
|
|
|
|
public abstract List<DiscoverInfo.Identity> getNodeIdentities();
|
|
|
|
|
2013-03-18 09:40:35 +01:00
|
|
|
/**
|
|
|
|
* Returns a list of the packet extensions defined in the node.
|
|
|
|
*
|
|
|
|
* @return a list of the packet extensions defined in the node.
|
|
|
|
*/
|
|
|
|
public abstract List<PacketExtension> getNodePacketExtensions();
|
2004-05-09 21:11:58 +02:00
|
|
|
}
|