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
155bb672
Commit
155bb672
authored
Nov 30, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding work-around for plugins that introduce non-standard connection types (smack, websocket).
parent
5b21ed98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
WSConnection.java
...s/ofmeet/src/java/org/ifsoft/websockets/WSConnection.java
+11
-0
XMPPConnection.java
...fmeet/src/java/org/jivesoftware/smack/XMPPConnection.java
+13
-1
WebSocketConnection.java
.../jivesoftware/openfire/websocket/WebSocketConnection.java
+15
-1
No files found.
src/plugins/ofmeet/src/java/org/ifsoft/websockets/WSConnection.java
View file @
155bb672
package
org
.
ifsoft
.
websockets
;
import
org.jivesoftware.openfire.spi.ConnectionConfiguration
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -84,6 +85,16 @@ public class WSConnection extends VirtualConnection
this
.
socket
.
deliver
(
text
);
}
@Override
public
ConnectionConfiguration
getConfiguration
()
{
// TODO Here we run into an issue with the ConnectionConfiguration introduced in Openfire 4:
// it is not extensible in the sense that unforeseen connection types can be added.
// For now, null is returned, as this object is likely to be unused (its lifecycle is
// not managed by a ConnectionListener instance).
return
null
;
}
public
Certificate
[]
getPeerCertificates
()
{
return
null
;
}
...
...
src/plugins/ofmeet/src/java/org/jivesoftware/smack/XMPPConnection.java
View file @
155bb672
...
...
@@ -20,6 +20,8 @@
package
org
.
jivesoftware
.
smack
;
import
org.jivesoftware.openfire.spi.ConnectionManagerImpl
;
import
org.jivesoftware.openfire.spi.ConnectionType
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -789,7 +791,17 @@ public class XMPPConnection extends Connection
}
}
public
Certificate
[]
getPeerCertificates
()
{
@Override
public
org
.
jivesoftware
.
openfire
.
spi
.
ConnectionConfiguration
getConfiguration
()
{
// TODO Here we run into an issue with the ConnectionConfiguration introduced in Openfire 4:
// it is not extensible in the sense that unforeseen connection types can be added.
// For now, null is returned, as this object is likely to be unused (its lifecycle is
// not managed by a ConnectionListener instance).
return
null
;
}
public
Certificate
[]
getPeerCertificates
()
{
return
null
;
}
...
...
src/plugins/websocket/src/java/org/jivesoftware/openfire/websocket/WebSocketConnection.java
View file @
155bb672
...
...
@@ -19,9 +19,13 @@ import java.net.InetSocketAddress;
import
org.dom4j.Namespace
;
import
org.jivesoftware.openfire.PacketDeliverer
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.auth.UnauthorizedException
;
import
org.jivesoftware.openfire.net.VirtualConnection
;
import
org.jivesoftware.openfire.nio.OfflinePacketDeliverer
;
import
org.jivesoftware.openfire.spi.ConnectionConfiguration
;
import
org.jivesoftware.openfire.spi.ConnectionManagerImpl
;
import
org.jivesoftware.openfire.spi.ConnectionType
;
import
org.xmpp.packet.Packet
;
import
org.xmpp.packet.StreamError
;
...
...
@@ -106,7 +110,17 @@ public class WebSocketConnection extends VirtualConnection
return
backupDeliverer
;
}
@Override
@Override
public
ConnectionConfiguration
getConfiguration
()
{
// TODO Here we run into an issue with the ConnectionConfiguration introduced in Openfire 4:
// it is not extensible in the sense that unforeseen connection types can be added.
// For now, null is returned, as this object is likely to be unused (its lifecycle is
// not managed by a ConnectionListener instance).
return
null
;
}
@Override
public
boolean
isCompressed
()
{
return
XmppWebSocket
.
isCompressionEnabled
();
}
...
...
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