public class ConnectionManagerImpl extends BasicModule implements ConnectionManager, CertificateEventListener, PropertyEventListener
| Modifier and Type | Field and Description |
|---|---|
static String |
CAPACITY_FILTER_NAME |
static String |
COMPRESSION_FILTER_NAME |
static String |
EXECUTOR_FILTER_NAME |
static String |
TLS_FILTER_NAME |
static String |
XMPP_CODEC_FILTER_NAME |
DEFAULT_COMPONENT_PORT, DEFAULT_COMPONENT_SSL_PORT, DEFAULT_MULTIPLEX_PORT, DEFAULT_MULTIPLEX_SSL_PORT, DEFAULT_PORT, DEFAULT_SERVER_PORT, DEFAULT_SERVER_SSL_PORT, DEFAULT_SSL_PORT| Constructor and Description |
|---|
ConnectionManagerImpl()
Instantiates a new connection manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enable(ConnectionType type,
boolean startInSslMode,
boolean enabled)
Enables or disables a connection listener.
|
void |
enableClientListener(boolean enabled)
Deprecated.
|
void |
enableClientSSLListener(boolean enabled)
Deprecated.
|
void |
enableComponentListener(boolean enabled)
Deprecated.
|
void |
enableComponentSslListener(boolean enabled)
Deprecated.
|
void |
enableConnectionManagerListener(boolean enabled)
Deprecated.
|
void |
enableConnectionManagerSslListener(boolean enabled)
Deprecated.
|
void |
enableServerListener(boolean enabled)
Deprecated.
|
void |
enableServerSslListener(boolean enabled)
Deprecated.
|
InetAddress |
getAdminConsoleListenAddress()
Returns the specific network interface on which the Openfire administration
console should be configured to listen, or null when no such preference
has been configured.
|
int |
getClientListenerPort()
Deprecated.
|
int |
getClientSSLListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getComponentAcceptor()
Deprecated.
|
int |
getComponentListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getComponentSslAcceptor()
Deprecated.
|
int |
getComponentSslListenerPort()
Deprecated.
|
int |
getConnectionManagerListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getConnectionManagerSocketAcceptor()
Deprecated.
|
int |
getConnectionManagerSslListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getConnectionManagerSslSocketAcceptor()
Deprecated.
|
InetAddress |
getListenAddress()
Returns the specific network interface on which Openfire is configured to listen, or null when no such preference
has been configured.
|
ConnectionListener |
getListener(ConnectionType type,
boolean startInSslMode)
Returns a connection listener.
|
Set<ConnectionListener> |
getListeners()
Returns all connection listeners.
|
Set<ConnectionListener> |
getListeners(ConnectionType type)
Returns al connection listeners for the provided type.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getMultiplexerSocketAcceptor()
Deprecated.
Replaced by #getConnectionManagerSocketAcceptor
|
int |
getPort(ConnectionType type,
boolean startInSslMode)
Retrieves the configured TCP port on which a listener accepts connections.
|
Collection<ServerPort> |
getPorts()
Deprecated.
use #getListeners
|
int |
getServerListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getServerListenerSocketAcceptor()
Deprecated.
|
int |
getServerSslListenerPort()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getServerSslListenerSocketAcceptor()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getSocketAcceptor()
Deprecated.
|
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getSocketAcceptor(ConnectionType type,
boolean startInSslMode) |
org.apache.mina.transport.socket.nio.NioSocketAcceptor |
getSSLSocketAcceptor()
Deprecated.
|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
boolean |
isClientListenerEnabled()
Deprecated.
|
boolean |
isClientSSLListenerEnabled()
Deprecated.
|
boolean |
isComponentListenerEnabled()
Deprecated.
|
boolean |
isComponentSslListenerEnabled()
Deprecated.
|
boolean |
isConnectionManagerListenerEnabled()
Deprecated.
|
boolean |
isConnectionManagerSslListenerEnabled()
Deprecated.
|
boolean |
isEnabled(ConnectionType type,
boolean startInSslMode)
Return if the configuration allows this listener to be enabled (but does not verify that the listener is
indeed active)
The #startInSslMode parameter is used to distinguish between listeners that expect to receive SSL encrypted data
immediately, as opposed to connections that initially accept plain text data (the latter are typically subject to
StartTLS for in-band encryption configuration).
|
boolean |
isServerListenerEnabled()
Deprecated.
|
boolean |
isServerSslListenerEnabled()
Deprecated.
|
void |
propertyDeleted(String property,
Map<String,Object> params)
A property was deleted.
|
void |
propertySet(String property,
Map<String,Object> params)
A property was set.
|
void |
setClientListenerPort(int port)
Deprecated.
|
void |
setClientSSLListenerPort(int port)
Deprecated.
|
void |
setComponentListenerPort(int port)
Deprecated.
|
void |
setComponentSslListenerPort(int port)
Deprecated.
|
void |
setConnectionManagerListenerPort(int port)
Deprecated.
|
void |
setConnectionManagerSslListenerPort(int port)
Deprecated.
|
void |
setPort(ConnectionType type,
boolean startInSslMode,
int port)
Sets the TCP port on which a listener accepts connections.
|
void |
setServerListenerPort(int port)
Deprecated.
|
void |
setServerSslListenerPort(int port)
Deprecated.
|
void |
start()
Starts the basic module.
|
void |
stop()
Stops the basic module.
|
void |
storeContentChanged(CertificateStore store)
Event triggered when the content of a certificate store was changed.
|
void |
xmlPropertyDeleted(String property,
Map<String,Object> params)
An XML property was deleted.
|
void |
xmlPropertySet(String property,
Map<String,Object> params)
An XML property was set.
|
destroy, getNamepublic static final String EXECUTOR_FILTER_NAME
public static final String TLS_FILTER_NAME
public static final String COMPRESSION_FILTER_NAME
public static final String XMPP_CODEC_FILTER_NAME
public static final String CAPACITY_FILTER_NAME
public ConnectionManagerImpl()
throws IOException
IOException - if the identity or trust stores could not be loadedpublic InetAddress getListenAddress() throws UnknownHostException
UnknownHostException - When the configured network name cannot be resolved.public InetAddress getAdminConsoleListenAddress() throws UnknownHostException
UnknownHostException - When the configured network name cannot be resolved.public Set<ConnectionListener> getListeners()
public ConnectionListener getListener(ConnectionType type, boolean startInSslMode)
type - The connection type for which a listener is to be configured.startInSslMode - true when the listener to be configured is in legacy SSL mode, otherwise false.public Set<ConnectionListener> getListeners(ConnectionType type)
type - The connection type for which a listener is to be configured.public boolean isEnabled(ConnectionType type, boolean startInSslMode)
type - The connection type for which a listener is to be configured.startInSslMode - true when the listener to be configured is in legacy SSL mode, otherwise false.public void enable(ConnectionType type, boolean startInSslMode, boolean enabled)
type - The connection type for which a listener is to be configured.startInSslMode - true when the listener to be configured is in legacy SSL mode, otherwise false.enabled - true if the listener is to be enabled, otherwise false.public int getPort(ConnectionType type, boolean startInSslMode)
type - The connection type for which a listener is to be configured.startInSslMode - true when the listener to be configured is in legacy SSL mode, otherwise false.public void setPort(ConnectionType type, boolean startInSslMode, int port)
type - The connection type for which a listener is to be configured.startInSslMode - true when the listener to be configured is in legacy SSL mode, otherwise false.port - a port number.public org.apache.mina.transport.socket.nio.NioSocketAcceptor getSocketAcceptor(ConnectionType type, boolean startInSslMode)
public void storeContentChanged(CertificateStore store)
CertificateEventListenerstoreContentChanged in interface CertificateEventListenerstore - The store for which the content was changed.public void propertySet(String property, Map<String,Object> params)
PropertyEventListenerparams will contain the
the value of the property under the key value.propertySet in interface PropertyEventListenerproperty - the name of the property.params - event parameters.public void propertyDeleted(String property, Map<String,Object> params)
PropertyEventListenerpropertyDeleted in interface PropertyEventListenerproperty - the name of the property deleted.params - event parameters.public void xmlPropertySet(String property, Map<String,Object> params)
PropertyEventListenerparams will contain the
the value of the property under the key value.xmlPropertySet in interface PropertyEventListenerproperty - the name of the property.params - event parameters.public void xmlPropertyDeleted(String property, Map<String,Object> params)
PropertyEventListenerxmlPropertyDeleted in interface PropertyEventListenerproperty - the name of the property.params - event parameters.public void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.public void start()
BasicModuleStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start in interface Modulestart in class BasicModulepublic void stop()
BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop in interface Modulestop in class BasicModule@Deprecated public void enableClientListener(boolean enabled)
ConnectionManagerenableClientListener in interface ConnectionManagerenabled - true if new unsecured clients will be able to connect to the server.@Deprecated public boolean isClientListenerEnabled()
ConnectionManagerisClientListenerEnabled in interface ConnectionManager@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getSocketAcceptor()
@Deprecated public void setClientListenerPort(int port)
ConnectionManagersetClientListenerPort in interface ConnectionManagerport - the port to use for unsecured clients.@Deprecated public int getClientListenerPort()
ConnectionManagergetClientListenerPort in interface ConnectionManager@Deprecated public void enableClientSSLListener(boolean enabled)
ConnectionManagerenableClientSSLListener in interface ConnectionManagerenabled - true if new secured clients will be able to connect to the server.@Deprecated public boolean isClientSSLListenerEnabled()
ConnectionManagerisClientSSLListenerEnabled in interface ConnectionManager@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getSSLSocketAcceptor()
@Deprecated public void setClientSSLListenerPort(int port)
ConnectionManagersetClientSSLListenerPort in interface ConnectionManagerport - the port to use for secured clients.@Deprecated public int getClientSSLListenerPort()
ConnectionManagergetClientSSLListenerPort in interface ConnectionManager@Deprecated public void enableComponentListener(boolean enabled)
ConnectionManagerenableComponentListener in interface ConnectionManagerenabled - true if new external components will be able to connect to the server.@Deprecated public boolean isComponentListenerEnabled()
ConnectionManagerisComponentListenerEnabled in interface ConnectionManager@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getComponentAcceptor()
@Deprecated public void setComponentListenerPort(int port)
ConnectionManagersetComponentListenerPort in interface ConnectionManagerport - the port to use for external components.@Deprecated public int getComponentListenerPort()
ConnectionManagergetComponentListenerPort in interface ConnectionManager@Deprecated public void enableComponentSslListener(boolean enabled)
@Deprecated public boolean isComponentSslListenerEnabled()
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getComponentSslAcceptor()
@Deprecated public void setComponentSslListenerPort(int port)
@Deprecated public int getComponentSslListenerPort()
@Deprecated public void enableServerListener(boolean enabled)
ConnectionManagerenableServerListener in interface ConnectionManagerenabled - true if new remote servers will be able to connect to the server.@Deprecated public boolean isServerListenerEnabled()
ConnectionManagerisServerListenerEnabled in interface ConnectionManager@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getServerListenerSocketAcceptor()
@Deprecated public void setServerListenerPort(int port)
ConnectionManagersetServerListenerPort in interface ConnectionManagerport - the port to use for remote servers.@Deprecated public int getServerListenerPort()
ConnectionManagergetServerListenerPort in interface ConnectionManager@Deprecated public void enableServerSslListener(boolean enabled)
@Deprecated public boolean isServerSslListenerEnabled()
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getServerSslListenerSocketAcceptor()
@Deprecated public void setServerSslListenerPort(int port)
ConnectionManagersetServerSslListenerPort in interface ConnectionManagerport - the port to use for remote servers.@Deprecated public int getServerSslListenerPort()
ConnectionManagergetServerSslListenerPort in interface ConnectionManager@Deprecated public void enableConnectionManagerListener(boolean enabled)
ConnectionManagerenableConnectionManagerListener in interface ConnectionManagerenabled - true if new connection managers will be able to connect to the server.@Deprecated public boolean isConnectionManagerListenerEnabled()
ConnectionManagerisConnectionManagerListenerEnabled in interface ConnectionManager@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getMultiplexerSocketAcceptor()
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getConnectionManagerSocketAcceptor()
@Deprecated public void setConnectionManagerListenerPort(int port)
ConnectionManagersetConnectionManagerListenerPort in interface ConnectionManagerport - the port to use for connection managers.@Deprecated public int getConnectionManagerListenerPort()
ConnectionManagergetConnectionManagerListenerPort in interface ConnectionManager@Deprecated public void enableConnectionManagerSslListener(boolean enabled)
@Deprecated public boolean isConnectionManagerSslListenerEnabled()
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getConnectionManagerSslSocketAcceptor()
@Deprecated public void setConnectionManagerSslListenerPort(int port)
@Deprecated public int getConnectionManagerSslListenerPort()
@Deprecated public Collection<ServerPort> getPorts()
ConnectionManagergetPorts in interface ConnectionManagerCopyright © 2003–2019 Ignite Realtime. All rights reserved.