|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.pubsub.PubSubEngine
public class PubSubEngine
A PubSubEngine is responsible for handling packets sent to a pub-sub service.
Constructor Summary | |
---|---|
PubSubEngine(PacketRouter router)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PubSubEngine(PacketRouter router)
Method Detail |
---|
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.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |