Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
4e33aa0d
Commit
4e33aa0d
authored
Mar 13, 2015
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #192 from nobelium/OF-858
OF-858: Auto create new nodes in PEP
parents
8e9fe62b
eacb38f9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
35 deletions
+99
-35
IQPEPHandler.java
src/java/org/jivesoftware/openfire/pep/IQPEPHandler.java
+9
-1
PubSubEngine.java
src/java/org/jivesoftware/openfire/pubsub/PubSubEngine.java
+90
-34
No files found.
src/java/org/jivesoftware/openfire/pep/IQPEPHandler.java
View file @
4e33aa0d
...
...
@@ -21,6 +21,7 @@
package
org
.
jivesoftware
.
openfire
.
pep
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Iterator
;
import
java.util.Map
;
import
java.util.concurrent.ExecutorService
;
...
...
@@ -278,7 +279,14 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
* in the server's disco#info result (as per section 4 of XEP-0163).
*/
public
Iterator
<
String
>
getFeatures
()
{
return
XMPPServer
.
getInstance
().
getPubSubModule
().
getFeatures
(
null
,
null
,
null
);
Iterator
<
String
>
it
=
XMPPServer
.
getInstance
().
getPubSubModule
().
getFeatures
(
null
,
null
,
null
);
ArrayList
<
String
>
features
=
new
ArrayList
<
String
>();
while
(
it
.
hasNext
())
{
features
.
add
(
it
.
next
());
}
// Auto Creation of nodes is supported in PEP
features
.
add
(
"http://jabber.org/protocol/pubsub#auto-create"
);
return
features
.
iterator
();
}
...
...
src/java/org/jivesoftware/openfire/pubsub/PubSubEngine.java
View file @
4e33aa0d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment