|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.wildfire.pubsub.PubSubEngine
public class PubSubEngine
A PubSubEngine is responsible for handling packets sent to the pub-sub service.
Constructor Summary | |
---|---|
PubSubEngine(PubSubService pubSubService,
PacketRouter router)
|
Method Summary | |
---|---|
Collection<String> |
getShowPresences(JID subscriber)
Returns the show values of the last know presence of all connected resources of the specified subscriber. |
void |
presenceSubscriptionNotRequired(Node node,
JID user)
Requests the pubsub service to subscribe to the presence of the user. |
void |
presenceSubscriptionRequired(Node node,
JID user)
Requests the pubsub service to unsubscribe from the presence of the user. |
boolean |
process(IQ iq)
Handles IQ packets sent to the pubsub service. |
void |
process(Message message)
Handles Message packets sent to the pubsub service. |
void |
process(Presence presence)
Handles Presence packets sent to the pubsub service. |
void |
shutdown()
|
void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PubSubEngine(PubSubService pubSubService, PacketRouter router)
Method Detail |
---|
public boolean process(IQ iq)
iq
- the IQ packet sent to the pubsub service.
public void process(Presence presence)
presence
- the Presence packet sent to the pubsub service.public void process(Message message)
Answers to authorization requests sent to node owners to approve pending subscriptions will also be processed by this method.
message
- the Message packet sent to the pubsub service.public void start()
public void shutdown()
public Collection<String> getShowPresences(JID subscriber)
subscriber
- the JID of the subscriber. This is not the JID of the affiliate.
public void presenceSubscriptionNotRequired(Node node, JID user)
node
- the node that originated the subscription request.user
- the JID of the affiliate to subscribe to his presence.public void presenceSubscriptionRequired(Node node, JID user)
node
- the node that originated the unsubscription request.user
- the JID of the affiliate to unsubscribe from his presence.
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |