Enum PubSubFeature
- java.lang.Object
-
- java.lang.Enum<PubSubFeature>
-
- rocks.xmpp.extensions.pubsub.model.PubSubFeature
-
- All Implemented Interfaces:
Serializable
,Comparable<PubSubFeature>
,Feature
public enum PubSubFeature extends Enum<PubSubFeature> implements Feature
Represents the pubsub features.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_AUTHORIZE
The default node access model is authorize.ACCESS_OPEN
The default node access model is open.ACCESS_PRESENCE
TThe default node access model is presence.ACCESS_ROSTER
The default node access model is roster.ACCESS_WHITELIST
The default node access model is whitelist.AUTO_CREATE
The service supports automatic creation of nodes on first publish.AUTO_SUBSCRIBE
The service supports automatic subscription to a nodes based on presence subscription.COLLECTIONS
Collection nodes are supported.CONFIG_NODE
Configuration of node options is supported.CREATE_AND_CONFIGURE
Simultaneous creation and configuration of nodes is supported.CREATE_NODES
Creation of nodes is supported.DELETE_ITEMS
Deletion of items is supported.DELETE_NODES
Deletion of nodes is supported.FILTERED_NOTIFICATIONS
The service supports filtering of notifications based on Entity Capabilities.GET_PENDING
Retrieval of pending subscription approvals is supported.INSTANT_NODES
Creation of instant nodes is supported.ITEM_IDS
Publishers may specify item identifiers.LAST_PUBLISHED
The service supports sending of the last published item to new subscribers and to newly available resources.LEASED_SUBSCRIPTION
Time-based subscriptions are supported.MANAGE_SUBSCRIPTIONS
Node owners may manage subscriptions.MEMBER_AFFILIATION
The member affiliation is supported.META_DATA
Node meta-data is supported.MODIFY_AFFILIATIONS
Node owners may modify affiliations.MULTI_COLLECTION
A single leaf node can be associated with multiple collections.MULTI_ITEMS
The service supports the storage of multiple items per node.MULTI_SUBSCRIBE
A single entity may subscribe to a node multiple times.OUTCAST_AFFILIATION
The outcast affiliation is supported.PERSISTENT_ITEMS
Persistent items are supported.PRESENCE_NOTIFICATIONS
Presence-based delivery of event notifications is supported.PRESENCE_SUBSCRIBE
Implicit presence-based subscriptions are supported.PUBLISH
Publishing items is supported.PUBLISH_ONLY_AFFILIATION
The publish-only affiliation is supported.PUBLISH_OPTIONS
Publication with publish options is supported.PUBLISHER_AFFILIATION
The publisher affiliation is supported.PURGE_NODES
Purging of nodes is supported.RESULT_SET_MANAGEMENT
Item retrieval is supported.RETRACT_ITEMS
Item retraction is supported.RETRIEVE_AFFILIATIONS
Retrieval of current affiliations is supported.RETRIEVE_DEFAULT
Retrieval of default node configuration is supported.RETRIEVE_DEFAULT_SUB
Retrieval of default subscription configuration is supported.RETRIEVE_ITEMS
Item retrieval is supported.RETRIEVE_SUBSCRIPTIONS
Retrieval of current subscriptions is supported.SUBSCRIBE
Subscribing and unsubscribing are supported.SUBSCRIPTION_NOTIFICATIONS
Notification of subscription state changes is supported.SUBSCRIPTION_OPTIONS
Configuration of subscription options is supported.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFeatureName()
Gets the name of the feature.static PubSubFeature
valueOf(String name)
Returns the enum constant of this type with the specified name.static PubSubFeature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS_AUTHORIZE
public static final PubSubFeature ACCESS_AUTHORIZE
The default node access model is authorize.- See Also:
- 4.5 Node Access Models
-
ACCESS_OPEN
public static final PubSubFeature ACCESS_OPEN
The default node access model is open.- See Also:
- 4.5 Node Access Models
-
ACCESS_PRESENCE
public static final PubSubFeature ACCESS_PRESENCE
TThe default node access model is presence.- See Also:
- 4.5 Node Access Models
-
ACCESS_ROSTER
public static final PubSubFeature ACCESS_ROSTER
The default node access model is roster.- See Also:
- 4.5 Node Access Models
-
ACCESS_WHITELIST
public static final PubSubFeature ACCESS_WHITELIST
The default node access model is whitelist.- See Also:
- 4.5 Node Access Models
-
AUTO_CREATE
public static final PubSubFeature AUTO_CREATE
The service supports automatic creation of nodes on first publish.- See Also:
- 7.1.4 Automatic Node Creation
-
AUTO_SUBSCRIBE
public static final PubSubFeature AUTO_SUBSCRIBE
The service supports automatic subscription to a nodes based on presence subscription.- See Also:
- 9.1 Auto-Subscribe
-
COLLECTIONS
public static final PubSubFeature COLLECTIONS
Collection nodes are supported.- See Also:
- XEP-0248: PubSub Collection Nodes
-
CONFIG_NODE
public static final PubSubFeature CONFIG_NODE
Configuration of node options is supported.- See Also:
- 8.2 Configure a Node
-
CREATE_AND_CONFIGURE
public static final PubSubFeature CREATE_AND_CONFIGURE
Simultaneous creation and configuration of nodes is supported.- See Also:
- 8.1.3 Create and Configure a Node
-
CREATE_NODES
public static final PubSubFeature CREATE_NODES
Creation of nodes is supported.- See Also:
- 8.1 Create a Node
-
DELETE_ITEMS
public static final PubSubFeature DELETE_ITEMS
Deletion of items is supported.- See Also:
- 7.2 Delete an Item from a Node
-
DELETE_NODES
public static final PubSubFeature DELETE_NODES
Deletion of nodes is supported.- See Also:
- 8.4 Delete a Node
-
FILTERED_NOTIFICATIONS
public static final PubSubFeature FILTERED_NOTIFICATIONS
The service supports filtering of notifications based on Entity Capabilities.- See Also:
- 9.2 Filtered Notifications
-
GET_PENDING
public static final PubSubFeature GET_PENDING
Retrieval of pending subscription approvals is supported.- See Also:
- 8.6 Manage Subscription Requests
-
INSTANT_NODES
public static final PubSubFeature INSTANT_NODES
Creation of instant nodes is supported.- See Also:
- 8.1 Create a Node
-
ITEM_IDS
public static final PubSubFeature ITEM_IDS
Publishers may specify item identifiers.
-
LAST_PUBLISHED
public static final PubSubFeature LAST_PUBLISHED
The service supports sending of the last published item to new subscribers and to newly available resources.- See Also:
- 4.3 Event Types
-
LEASED_SUBSCRIPTION
public static final PubSubFeature LEASED_SUBSCRIPTION
Time-based subscriptions are supported.- See Also:
- 12.18 Time-Based Subscriptions (Leases)
-
MANAGE_SUBSCRIPTIONS
public static final PubSubFeature MANAGE_SUBSCRIPTIONS
Node owners may manage subscriptions.- See Also:
- 8.8 Manage Subscriptions
-
MEMBER_AFFILIATION
public static final PubSubFeature MEMBER_AFFILIATION
The member affiliation is supported.- See Also:
- 4.1 Affiliations
-
META_DATA
public static final PubSubFeature META_DATA
Node meta-data is supported.
-
MODIFY_AFFILIATIONS
public static final PubSubFeature MODIFY_AFFILIATIONS
Node owners may modify affiliations.- See Also:
- 8.9 Manage Affiliations
-
MULTI_COLLECTION
public static final PubSubFeature MULTI_COLLECTION
A single leaf node can be associated with multiple collections.- See Also:
- XEP-0248: PubSub Collection Nodes
-
MULTI_ITEMS
public static final PubSubFeature MULTI_ITEMS
The service supports the storage of multiple items per node.
-
MULTI_SUBSCRIBE
public static final PubSubFeature MULTI_SUBSCRIBE
A single entity may subscribe to a node multiple times.- See Also:
- 6.1.6 Multiple Subscriptions
-
OUTCAST_AFFILIATION
public static final PubSubFeature OUTCAST_AFFILIATION
The outcast affiliation is supported.- See Also:
- 4.1 Affiliations
-
PERSISTENT_ITEMS
public static final PubSubFeature PERSISTENT_ITEMS
Persistent items are supported.
-
PRESENCE_NOTIFICATIONS
public static final PubSubFeature PRESENCE_NOTIFICATIONS
Presence-based delivery of event notifications is supported.
-
PRESENCE_SUBSCRIBE
public static final PubSubFeature PRESENCE_SUBSCRIBE
Implicit presence-based subscriptions are supported.- See Also:
- 9.1 Auto-Subscribe
-
PUBLISH
public static final PubSubFeature PUBLISH
Publishing items is supported.- See Also:
- 7.1 Publish an Item to a Node
-
PUBLISH_OPTIONS
public static final PubSubFeature PUBLISH_OPTIONS
Publication with publish options is supported.- See Also:
- 7.1.5 Publishing Options
-
PUBLISH_ONLY_AFFILIATION
public static final PubSubFeature PUBLISH_ONLY_AFFILIATION
The publish-only affiliation is supported.- See Also:
- 4.1 Affiliations
-
PUBLISHER_AFFILIATION
public static final PubSubFeature PUBLISHER_AFFILIATION
The publisher affiliation is supported.- See Also:
- 4.1 Affiliations
-
PURGE_NODES
public static final PubSubFeature PURGE_NODES
Purging of nodes is supported.- See Also:
- 8.5 Purge All Node Items
-
RETRACT_ITEMS
public static final PubSubFeature RETRACT_ITEMS
Item retraction is supported.- See Also:
- 7.2 Delete an Item from a Node
-
RETRIEVE_AFFILIATIONS
public static final PubSubFeature RETRIEVE_AFFILIATIONS
Retrieval of current affiliations is supported.- See Also:
- 5.7 Retrieve Affiliations
-
RETRIEVE_DEFAULT
public static final PubSubFeature RETRIEVE_DEFAULT
Retrieval of default node configuration is supported.
-
RETRIEVE_DEFAULT_SUB
public static final PubSubFeature RETRIEVE_DEFAULT_SUB
Retrieval of default subscription configuration is supported.
-
RETRIEVE_ITEMS
public static final PubSubFeature RETRIEVE_ITEMS
Item retrieval is supported.- See Also:
- 6.5 Retrieve Items from a Node
-
RESULT_SET_MANAGEMENT
public static final PubSubFeature RESULT_SET_MANAGEMENT
Item retrieval is supported.- See Also:
- 6.5.4 Returning Some Items
-
RETRIEVE_SUBSCRIPTIONS
public static final PubSubFeature RETRIEVE_SUBSCRIPTIONS
Retrieval of current subscriptions is supported.- See Also:
- 5.6 Retrieve Subscriptions
-
SUBSCRIBE
public static final PubSubFeature SUBSCRIBE
Subscribing and unsubscribing are supported.
-
SUBSCRIPTION_OPTIONS
public static final PubSubFeature SUBSCRIPTION_OPTIONS
Configuration of subscription options is supported.- See Also:
- 6.3 Configure Subscription Options
-
SUBSCRIPTION_NOTIFICATIONS
public static final PubSubFeature SUBSCRIPTION_NOTIFICATIONS
Notification of subscription state changes is supported.
-
-
Method Detail
-
values
public static PubSubFeature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PubSubFeature c : PubSubFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PubSubFeature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFeatureName
public final String getFeatureName()
Description copied from interface:Feature
Gets the name of the feature.- Specified by:
getFeatureName
in interfaceFeature
- Returns:
- The feature name.
-
-