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, getName
public 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)
CertificateEventListener
storeContentChanged
in interface CertificateEventListener
store
- The store for which the content was changed.public void propertySet(String property, Map<String,Object> params)
PropertyEventListener
params
will contain the
the value of the property under the key value
.propertySet
in interface PropertyEventListener
property
- the name of the property.params
- event parameters.public void propertyDeleted(String property, Map<String,Object> params)
PropertyEventListener
propertyDeleted
in interface PropertyEventListener
property
- the name of the property deleted.params
- event parameters.public void xmlPropertySet(String property, Map<String,Object> params)
PropertyEventListener
params
will contain the
the value of the property under the key value
.xmlPropertySet
in interface PropertyEventListener
property
- the name of the property.params
- event parameters.public void xmlPropertyDeleted(String property, Map<String,Object> params)
PropertyEventListener
xmlPropertyDeleted
in interface PropertyEventListener
property
- the name of the property.params
- event parameters.public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.public void start()
BasicModule
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start
in interface Module
start
in class BasicModule
public void stop()
BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop
in interface Module
stop
in class BasicModule
@Deprecated public void enableClientListener(boolean enabled)
ConnectionManager
enableClientListener
in interface ConnectionManager
enabled
- true if new unsecured clients will be able to connect to the server.@Deprecated public boolean isClientListenerEnabled()
ConnectionManager
isClientListenerEnabled
in interface ConnectionManager
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getSocketAcceptor()
@Deprecated public void setClientListenerPort(int port)
ConnectionManager
setClientListenerPort
in interface ConnectionManager
port
- the port to use for unsecured clients.@Deprecated public int getClientListenerPort()
ConnectionManager
getClientListenerPort
in interface ConnectionManager
@Deprecated public void enableClientSSLListener(boolean enabled)
ConnectionManager
enableClientSSLListener
in interface ConnectionManager
enabled
- true if new secured clients will be able to connect to the server.@Deprecated public boolean isClientSSLListenerEnabled()
ConnectionManager
isClientSSLListenerEnabled
in interface ConnectionManager
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getSSLSocketAcceptor()
@Deprecated public void setClientSSLListenerPort(int port)
ConnectionManager
setClientSSLListenerPort
in interface ConnectionManager
port
- the port to use for secured clients.@Deprecated public int getClientSSLListenerPort()
ConnectionManager
getClientSSLListenerPort
in interface ConnectionManager
@Deprecated public void enableComponentListener(boolean enabled)
ConnectionManager
enableComponentListener
in interface ConnectionManager
enabled
- true if new external components will be able to connect to the server.@Deprecated public boolean isComponentListenerEnabled()
ConnectionManager
isComponentListenerEnabled
in interface ConnectionManager
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getComponentAcceptor()
@Deprecated public void setComponentListenerPort(int port)
ConnectionManager
setComponentListenerPort
in interface ConnectionManager
port
- the port to use for external components.@Deprecated public int getComponentListenerPort()
ConnectionManager
getComponentListenerPort
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)
ConnectionManager
enableServerListener
in interface ConnectionManager
enabled
- true if new remote servers will be able to connect to the server.@Deprecated public boolean isServerListenerEnabled()
ConnectionManager
isServerListenerEnabled
in interface ConnectionManager
@Deprecated public org.apache.mina.transport.socket.nio.NioSocketAcceptor getServerListenerSocketAcceptor()
@Deprecated public void setServerListenerPort(int port)
ConnectionManager
setServerListenerPort
in interface ConnectionManager
port
- the port to use for remote servers.@Deprecated public int getServerListenerPort()
ConnectionManager
getServerListenerPort
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)
ConnectionManager
setServerSslListenerPort
in interface ConnectionManager
port
- the port to use for remote servers.@Deprecated public int getServerSslListenerPort()
ConnectionManager
getServerSslListenerPort
in interface ConnectionManager
@Deprecated public void enableConnectionManagerListener(boolean enabled)
ConnectionManager
enableConnectionManagerListener
in interface ConnectionManager
enabled
- true if new connection managers will be able to connect to the server.@Deprecated public boolean isConnectionManagerListenerEnabled()
ConnectionManager
isConnectionManagerListenerEnabled
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)
ConnectionManager
setConnectionManagerListenerPort
in interface ConnectionManager
port
- the port to use for connection managers.@Deprecated public int getConnectionManagerListenerPort()
ConnectionManager
getConnectionManagerListenerPort
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()
ConnectionManager
getPorts
in interface ConnectionManager
Copyright © 2003–2019 Ignite Realtime. All rights reserved.