forked from Flowdalic/asmack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asmack with bosh support (based on niess work)
- Loading branch information
Showing
7 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
rm com/kenai/jbosh/XLightWeb*.java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: org/jivesoftware/smackx/pubsub/PubSubManager.java | ||
=================================================================== | ||
--- org/jivesoftware/smackx/pubsub/PubSubManager.java (revision 11464) | ||
+++ org/jivesoftware/smackx/pubsub/PubSubManager.java (working copy) | ||
@@ -41,7 +41,7 @@ | ||
* | ||
* @author Robin Collier | ||
*/ | ||
-final public class PubSubManager | ||
+public class PubSubManager | ||
{ | ||
private XMPPConnection con; | ||
private String to; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Index: org/jivesoftware/smackx/pubsub/PubSubElementType.java | ||
=================================================================== | ||
--- org/jivesoftware/smackx/pubsub/PubSubElementType.java (revision 11464) | ||
+++ org/jivesoftware/smackx/pubsub/PubSubElementType.java (working copy) | ||
@@ -41,6 +41,7 @@ | ||
SUBSCRIBE("subscribe", PubSubNamespace.BASIC), | ||
SUBSCRIPTION("subscription", PubSubNamespace.BASIC), | ||
SUBSCRIPTIONS("subscriptions", PubSubNamespace.BASIC), | ||
+ SUBSCRIPTIONS_OWNER("subscriptions", PubSubNamespace.OWNER), | ||
UNSUBSCRIBE("unsubscribe", PubSubNamespace.BASIC); | ||
|
||
private String eName; | ||
Index: org/jivesoftware/smackx/pubsub/Node.java | ||
=================================================================== | ||
--- org/jivesoftware/smackx/pubsub/Node.java (revision 11464) | ||
+++ org/jivesoftware/smackx/pubsub/Node.java (working copy) | ||
@@ -131,6 +131,22 @@ | ||
} | ||
|
||
/** | ||
+ * Get all subscriptions currently associated with this node. | ||
+ * This includes foreign jids and uses the #owner namespace. | ||
+ * | ||
+ * @return List of {@link Subscription} | ||
+ * | ||
+ * @trhows XMPPException | ||
+ */ | ||
+ public List<Subscription> getAllSubscriptions() | ||
+ throws XMPPException | ||
+ { | ||
+ PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.SUBSCRIPTIONS_OWNER, getId()), PubSubNamespace.OWNER); | ||
+ SubscriptionsExtension subElem = (SubscriptionsExtension)reply.getExtension(PubSubElementType.SUBSCRIPTIONS_OWNER); | ||
+ return subElem.getSubscriptions(); | ||
+ } | ||
+ | ||
+ /** | ||
* The user subscribes to the node using the supplied jid. The | ||
* bare jid portion of this one must match the jid for the connection. | ||
* |
13 changes: 13 additions & 0 deletions
13
patch/buddycloud/30-PubSubNode-protected-constructor.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: org/jivesoftware/smackx/pubsub/Node.java | ||
=================================================================== | ||
--- org/jivesoftware/smackx/pubsub/Node.java (revision 11464) | ||
+++ org/jivesoftware/smackx/pubsub/Node.java (working copy) | ||
@@ -48,7 +48,7 @@ | ||
* @param connection The connection the node is associated with | ||
* @param nodeName The node id | ||
*/ | ||
- Node(Connection connection, String nodeName) | ||
+ protected Node(Connection connection, String nodeName) | ||
{ | ||
con = connection; | ||
id = nodeName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters