public class PubSubEngine extends Object
Constructor and Description |
---|
PubSubEngine(PacketRouter router) |
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
getShowPresences(PubSubService service,
org.xmpp.packet.JID subscriber)
Returns the show values of the last know presence of all connected resources of the
specified subscriber.
|
static void |
presenceSubscriptionNotRequired(PubSubService service,
Node node,
org.xmpp.packet.JID user)
Requests the pubsub service to subscribe to the presence of the user.
|
static void |
presenceSubscriptionRequired(PubSubService service,
Node node,
org.xmpp.packet.JID user)
Requests the pubsub service to unsubscribe from the presence of the user.
|
boolean |
process(PubSubService service,
org.xmpp.packet.IQ iq)
Handles IQ packets sent to the pubsub service.
|
void |
process(PubSubService service,
org.xmpp.packet.Message message)
Handles Message packets sent to the pubsub service.
|
void |
process(PubSubService service,
org.xmpp.packet.Presence presence)
Handles Presence packets sent to the pubsub service.
|
void |
shutdown(PubSubService service) |
void |
start(PubSubService service) |
public PubSubEngine(PacketRouter router)
public boolean process(PubSubService service, org.xmpp.packet.IQ iq)
service
- the PubSub service this action is to be performed for.iq
- the IQ packet sent to the pubsub service.public void process(PubSubService service, org.xmpp.packet.Presence presence)
service
- the PubSub service this action is to be performed for.presence
- the Presence packet sent to the pubsub service.public void process(PubSubService service, org.xmpp.packet.Message message)
Answers to authorization requests sent to node owners to approve pending subscriptions will also be processed by this method.
service
- the PubSub service this action is to be performed for.message
- the Message packet sent to the pubsub service.public void start(PubSubService service)
public void shutdown(PubSubService service)
public static Collection<String> getShowPresences(PubSubService service, org.xmpp.packet.JID subscriber)
service
- the PubSub service this action is to be performed for.subscriber
- the JID of the subscriber. This is not the JID of the affiliate.public static void presenceSubscriptionNotRequired(PubSubService service, Node node, org.xmpp.packet.JID user)
service
- the PubSub service this action is to be performed for.node
- the node that originated the subscription request.user
- the JID of the affiliate to subscribe to his presence.public static void presenceSubscriptionRequired(PubSubService service, Node node, org.xmpp.packet.JID user)
service
- the PubSub service this action is to be performed for.node
- the node that originated the unsubscription request.user
- the JID of the affiliate to unsubscribe from his presence.Copyright © 2003-2008 Jive Software.