Package | Description |
---|---|
rocks.xmpp.extensions.pubsub.model |
Provides XML schema implementations and configuration classes for XEP-0060: Publish-Subscribe.
|
Modifier and Type | Method and Description |
---|---|
static PubSub |
PubSub.withAffiliations()
Creates a pubsub element with an
<affiliations/> child element. |
static PubSub |
PubSub.withAffiliations(java.lang.String node)
Creates a pubsub element with an
<affiliations/> child element and a ‘node’ attribute. |
static PubSub |
PubSub.withConfigure(java.lang.String node,
DataForm configurationForm)
Creates a pubsub element with an
<configure/> child element and a ‘node’ attribute. |
static PubSub |
PubSub.withCreate(java.lang.String node)
Creates a pubsub element with an
<create/> child element and a ‘node’ attribute. |
static PubSub |
PubSub.withCreate(java.lang.String node,
DataForm configurationForm)
Creates a pubsub element with an
<create/> and <configure/> child element. |
static PubSub |
PubSub.withDefault()
Creates a pubsub element with a
<default/> child element. |
static PubSub |
PubSub.withDefault(java.lang.String node)
Creates a pubsub element with a
<default/> child element with a ‘node’ attribute. |
static PubSub |
PubSub.withItems(java.lang.String node)
Creates a pubsub element with an
<items/> child element with a ‘node’ attribute. |
static PubSub |
PubSub.withItems(java.lang.String node,
int maxItems)
Creates a pubsub element with an
<items/> child element with a ‘node’ and a ‘max_items’ attribute. |
static PubSub |
PubSub.withItems(java.lang.String node,
java.lang.String... ids)
Creates a pubsub element with an
<items/> child element, containing multiple item elements with an ‘id’ attribute. |
static PubSub |
PubSub.withOptions(java.lang.String node,
Jid jid,
java.lang.String subid,
DataForm dataForm)
Creates a pubsub element with an
<options/> child element with a ‘node’ and ‘jid’ attribute. |
static PubSub |
PubSub.withPublish(java.lang.String node,
java.lang.String id,
java.lang.Object item,
DataForm options)
Creates a pubsub element with a
<publish/> child element. |
static PubSub |
PubSub.withRetract(java.lang.String node,
java.lang.String id,
boolean notify)
Creates a pubsub element with a
<retract/> child element. |
static PubSub |
PubSub.withSubscribe(java.lang.String node,
Jid jid)
Creates a pubsub element with a
<subscribe/> child element with a ‘node’ and ‘jid’ attribute. |
static PubSub |
PubSub.withSubscribe(java.lang.String node,
Jid jid,
DataForm dataForm)
Creates a pubsub element with a
<subscribe/> and <options/> child element with a ‘node’ and ‘jid’ attribute. |
static PubSub |
PubSub.withSubscriptions()
Creates a pubsub element with a
<subscriptions/> child element. |
static PubSub |
PubSub.withSubscriptions(java.lang.String node)
Creates a pubsub element with a
<subscriptions/> child element with a ‘node’ attribute. |
static PubSub |
PubSub.withUnsubscribe(java.lang.String node,
Jid jid,
java.lang.String subscriptionId)
Creates a pubsub element with an
<unsubscribe/> child element with a ‘node’ and ‘jid’ attribute. |
Copyright © 2014–2019 XMPP.rocks. All rights reserved.