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
e7fa892b
Commit
e7fa892b
authored
Mar 24, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #544 from n00dl3/master
Fix non-working XEP-0136 for monitoring plugin
parents
6bbfd58f
c4753f69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
AbstractXepSupport.java
...eucon/openfire/plugin/archive/xep/AbstractXepSupport.java
+2
-2
Xep0136Support.java
...eucon/openfire/plugin/archive/xep0136/Xep0136Support.java
+3
-2
Xep0313Support.java
...eucon/openfire/plugin/archive/xep0313/Xep0313Support.java
+1
-1
No files found.
src/plugins/monitoring/src/java/com/reucon/openfire/plugin/archive/xep/AbstractXepSupport.java
View file @
e7fa892b
...
@@ -25,12 +25,12 @@ public abstract class AbstractXepSupport {
...
@@ -25,12 +25,12 @@ public abstract class AbstractXepSupport {
protected
final
String
namespace
;
protected
final
String
namespace
;
protected
Collection
<
IQHandler
>
iqHandlers
;
protected
Collection
<
IQHandler
>
iqHandlers
;
public
AbstractXepSupport
(
XMPPServer
server
,
String
namespace
,
String
iqDispatcherName
)
{
public
AbstractXepSupport
(
XMPPServer
server
,
String
namespace
,
String
iqDispatcherNamespace
,
String
iqDispatcherName
)
{
this
.
server
=
server
;
this
.
server
=
server
;
this
.
element2Handlers
=
Collections
this
.
element2Handlers
=
Collections
.
synchronizedMap
(
new
HashMap
<
String
,
IQHandler
>());
.
synchronizedMap
(
new
HashMap
<
String
,
IQHandler
>());
this
.
iqDispatcher
=
new
AbstractIQHandler
(
iqDispatcherName
,
null
,
n
amespace
)
{
this
.
iqDispatcher
=
new
AbstractIQHandler
(
iqDispatcherName
,
null
,
iqDispatcherN
amespace
)
{
public
IQ
handleIQ
(
IQ
packet
)
throws
UnauthorizedException
{
public
IQ
handleIQ
(
IQ
packet
)
throws
UnauthorizedException
{
if
(!
MonitoringPlugin
.
getInstance
().
isEnabled
())
{
if
(!
MonitoringPlugin
.
getInstance
().
isEnabled
())
{
return
error
(
packet
,
return
error
(
packet
,
...
...
src/plugins/monitoring/src/java/com/reucon/openfire/plugin/archive/xep0136/Xep0136Support.java
View file @
e7fa892b
...
@@ -13,10 +13,11 @@ import com.reucon.openfire.plugin.archive.xep.AbstractXepSupport;
...
@@ -13,10 +13,11 @@ import com.reucon.openfire.plugin.archive.xep.AbstractXepSupport;
*/
*/
public
class
Xep0136Support
extends
AbstractXepSupport
{
public
class
Xep0136Support
extends
AbstractXepSupport
{
private
static
final
String
NAMESPACE
=
"urn:xmpp:archive:auto"
;
private
static
final
String
NAMESPACE_AUTO
=
"urn:xmpp:archive:auto"
;
private
static
final
String
IQ_NAMESPACE
=
"urn:xmpp:archive"
;
public
Xep0136Support
(
XMPPServer
server
)
{
public
Xep0136Support
(
XMPPServer
server
)
{
super
(
server
,
NAMESPACE
,
"XEP-0136 IQ Dispatcher"
);
super
(
server
,
NAMESPACE
_AUTO
,
IQ_NAMESPACE
,
"XEP-0136 IQ Dispatcher"
);
iqHandlers
=
new
ArrayList
<
IQHandler
>();
iqHandlers
=
new
ArrayList
<
IQHandler
>();
...
...
src/plugins/monitoring/src/java/com/reucon/openfire/plugin/archive/xep0313/Xep0313Support.java
View file @
e7fa892b
...
@@ -16,7 +16,7 @@ public class Xep0313Support extends AbstractXepSupport {
...
@@ -16,7 +16,7 @@ public class Xep0313Support extends AbstractXepSupport {
private
static
final
String
NAMESPACE
=
"urn:xmpp:mam:0"
;
private
static
final
String
NAMESPACE
=
"urn:xmpp:mam:0"
;
public
Xep0313Support
(
XMPPServer
server
)
{
public
Xep0313Support
(
XMPPServer
server
)
{
super
(
server
,
NAMESPACE
,
"XEP-0313 IQ Dispatcher"
);
super
(
server
,
NAMESPACE
,
NAMESPACE
,
"XEP-0313 IQ Dispatcher"
);
this
.
iqHandlers
=
new
ArrayList
<
IQHandler
>();
this
.
iqHandlers
=
new
ArrayList
<
IQHandler
>();
iqHandlers
.
add
(
new
IQQueryHandler
());
iqHandlers
.
add
(
new
IQQueryHandler
());
...
...
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