|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Message>
tigase.jaxmpp.core.client.xmpp.modules.pubsub.PubSubModule
public class PubSubModule
Publish-Subscribe Module.
This module implementation of XEP-0060: Publish-Subscribe.
| Nested Class Summary | |
|---|---|
static class |
PubSubModule.PublishAsyncCallback
|
static class |
PubSubModule.PubSubEvent
|
static class |
PubSubModule.RetrieveItemsAsyncCallback
|
static class |
PubSubModule.SubscriptionAsyncCallback
|
static class |
PubSubModule.SubscriptionOptionsAsyncCallback
|
| Field Summary | |
|---|---|
static Criteria |
CRIT
|
static EventType |
NotificationReceived
|
| Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule |
|---|
log, observable, sessionObject, writer |
| Constructor Summary | |
|---|---|
PubSubModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
|
|
| Method Summary | |
|---|---|
void |
configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
AsyncCallback callback)
|
void |
configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
PubSubAsyncCallback callback)
|
void |
createNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Create node on PubSub Service. |
void |
createNode(BareJID pubSubJID,
String nodeName,
Element config,
AsyncCallback callback)
Create node on PubSub Service. |
void |
createNode(BareJID pubSubJID,
String nodeName,
Element config,
PubSubAsyncCallback callback)
Create node on PubSub Service. |
void |
createNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Create node on PubSub Service. |
static JabberDataElement |
createNodeConfiguration()
Create empty jabber:x:data element prepared to submit. |
void |
deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
|
void |
deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
|
void |
deleteNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Delete node from PubSub service. |
void |
deleteNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Delete node from PubSub service. |
protected void |
fireNotificationReceived(Message message,
String nodeName,
String itemType,
String itemId,
Element payload,
Date delayTime)
|
Criteria |
getCriteria()
Criteria |
void |
getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
|
void |
getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
|
String[] |
getFeatures()
Returns features what are implemented by Module. |
void |
getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
|
void |
getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
|
void |
process(Message message)
|
void |
publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
AsyncCallback callback)
|
void |
publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
PubSubModule.PublishAsyncCallback callback)
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
PubSubModule.RetrieveItemsAsyncCallback callback)
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
Integer maxItems,
AsyncCallback callback)
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubModule.RetrieveItemsAsyncCallback callback)
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
AsyncCallback callback)
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
PubSubModule.SubscriptionAsyncCallback callback)
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionAsyncCallback callback)
|
void |
unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
|
void |
unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
|
void |
unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
|
void |
unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubAsyncCallback callback)
|
| Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule |
|---|
addListener, addListener, process, removeAllListeners, removeListener, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Criteria CRIT
public static final EventType NotificationReceived
| Constructor Detail |
|---|
public PubSubModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
| Method Detail |
|---|
public static JabberDataElement createNodeConfiguration()
throws JaxmppException
jabber:x:data element prepared to submit.
JaxmppException
public void configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
AsyncCallback callback)
throws JaxmppException,
XMLException
JaxmppException
XMLException
public void configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
PubSubAsyncCallback callback)
throws JaxmppException,
XMLException
JaxmppException
XMLException
public void createNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
throws JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdcallback - callback
JaxmppException
public void createNode(BareJID pubSubJID,
String nodeName,
Element config,
AsyncCallback callback)
throws JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdconfig - node configurationcallback - callback
JaxmppException
public void createNode(BareJID pubSubJID,
String nodeName,
Element config,
PubSubAsyncCallback callback)
throws JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdconfig - node configurationcallback - callback
JaxmppException
public void createNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
throws JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdconfig - node configurationcallback - callback
JaxmppException
public void deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
throws JaxmppException,
JaxmppException
JaxmppException
public void deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
throws JaxmppException
JaxmppException
public void deleteNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
throws JaxmppException
pubSubJID - address of PubSub servicenodeName - na of node to deletecallback - callback
JaxmppException
public void deleteNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
throws JaxmppException
pubSubJID - address of PubSub servicenodeName - na of node to deletecallback - callback
JaxmppException
protected void fireNotificationReceived(Message message,
String nodeName,
String itemType,
String itemId,
Element payload,
Date delayTime)
throws JaxmppException
JaxmppExceptionpublic Criteria getCriteria()
XmppModule
public void getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
throws JaxmppException
JaxmppExceptionpublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
See Service Discovery Features
public void getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
throws JaxmppException
JaxmppException
public void process(Message message)
throws JaxmppException
process in class AbstractStanzaModule<Message>JaxmppException
public void publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
PubSubModule.PublishAsyncCallback callback)
throws JaxmppException
JaxmppException
public void retrieveItem(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void retrieveItem(BareJID pubSubJID,
String nodeName,
PubSubModule.RetrieveItemsAsyncCallback callback)
throws JaxmppException
JaxmppException
public void retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
Integer maxItems,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubModule.RetrieveItemsAsyncCallback callback)
throws JaxmppException
JaxmppException
public void subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
PubSubModule.SubscriptionAsyncCallback callback)
throws JaxmppException
JaxmppException
public void subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionAsyncCallback callback)
throws JaxmppException
JaxmppException
public void unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
throws JaxmppException
JaxmppException
public void unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
throws JaxmppException
JaxmppException
public void unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubAsyncCallback callback)
throws JaxmppException
JaxmppException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||