Commit 4976e86a authored by Guus der Kinderen's avatar Guus der Kinderen

OF-946: Don't have abstract Connection Types

Initially, I added a connection type 'admin' that was somewhat abstract. This
poses a practical issue: there's no instantiating an abstract type. As it is
hardly used, it should be removed.
parent a5e1e98a
...@@ -70,7 +70,7 @@ public class SSLProtocolSocketFactory implements SecureProtocolSocketFactory { ...@@ -70,7 +70,7 @@ public class SSLProtocolSocketFactory implements SecureProtocolSocketFactory {
new ClearspaceX509TrustManager( new ClearspaceX509TrustManager(
host, host,
manager.getProperties(), manager.getProperties(),
CertificateStoreManager.getTrustStore( ConnectionType.ADMIN ).getStore() ) CertificateStoreManager.getTrustStore( ConnectionType.SOCKET_S2S ).getStore() )
}, },
null); null);
return context; return context;
......
...@@ -187,7 +187,6 @@ public class ConnectionListener ...@@ -187,7 +187,6 @@ public class ConnectionListener
{ {
case SOCKET_S2S: case SOCKET_S2S:
case BOSH_C2S: case BOSH_C2S:
case ADMIN:
case WEBADMIN: case WEBADMIN:
Log.debug( "Not starting a (NIO-based) connection acceptor, as connections of type " + getType() + " depend on another IO technology."); Log.debug( "Not starting a (NIO-based) connection acceptor, as connections of type " + getType() + " depend on another IO technology.");
return; return;
......
...@@ -38,25 +38,20 @@ public enum ConnectionType ...@@ -38,25 +38,20 @@ public enum ConnectionType
*/ */
BOSH_C2S( "xmpp.bosh.ssl.client.", SOCKET_C2S ), BOSH_C2S( "xmpp.bosh.ssl.client.", SOCKET_C2S ),
/**
* Generic administrative services (eg: user providers).
*/
ADMIN( "admin.ssl.", SOCKET_S2S ),
/** /**
* Openfire web-admin console. * Openfire web-admin console.
*/ */
WEBADMIN( "admin.web.ssl.", ADMIN ), WEBADMIN( "admin.web.ssl.", SOCKET_S2S ),
/** /**
* Openfire External Component connectivity. * Openfire External Component connectivity.
*/ */
COMPONENT( "xmpp.component.", ADMIN ), COMPONENT( "xmpp.component.", SOCKET_S2S ),
/** /**
* Openfire Connection Manager (multiplexer) connectivity. * Openfire Connection Manager (multiplexer) connectivity.
*/ */
CONNECTION_MANAGER( "xmpp.multiplex.", ADMIN ); CONNECTION_MANAGER( "xmpp.multiplex.", SOCKET_S2S );
String prefix; String prefix;
ConnectionType fallback; ConnectionType fallback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment