|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.container.BasicModule
org.jivesoftware.openfire.spi.ConnectionManagerImpl
public class ConnectionManagerImpl
| Field Summary |
|---|
| Fields inherited from interface org.jivesoftware.openfire.ConnectionManager |
|---|
DEFAULT_COMPONENT_PORT, DEFAULT_MULTIPLEX_PORT, DEFAULT_PORT, DEFAULT_SERVER_PORT, DEFAULT_SSL_PORT |
| Constructor Summary | |
|---|---|
ConnectionManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
certificateCreated(KeyStore keyStore,
String alias,
X509Certificate cert)
Event triggered when a new certificate is created. |
void |
certificateDeleted(KeyStore keyStore,
String alias)
Event triggered when a certificate is being deleted from the keystore. |
void |
certificateSigned(KeyStore keyStore,
String alias,
List<X509Certificate> certificates)
Event triggered when a certificate has been signed by a Certificate Authority. |
SocketReader |
createSocketReader(Socket sock,
boolean isSecure,
ServerPort serverPort,
boolean useBlockingMode)
Creates a new socket reader for the new accepted socket to be managed by the connection manager. |
void |
enableClientListener(boolean enabled)
Sets if the port listener for unsecured clients will be available or not. |
void |
enableClientSSLListener(boolean enabled)
Sets if the port listener for secured clients will be available or not. |
void |
enableComponentListener(boolean enabled)
Sets if the port listener for external components will be available or not. |
void |
enableConnectionManagerListener(boolean enabled)
Sets if the port listener for connection managers will be available or not. |
void |
enableServerListener(boolean enabled)
Sets if the port listener for remote servers will be available or not. |
int |
getClientListenerPort()
Returns the port to use for unsecured clients. |
int |
getClientSSLListenerPort()
Returns the port to use for secured clients. |
org.apache.mina.transport.socket.nio.SocketAcceptor |
getComponentAcceptor()
|
int |
getComponentListenerPort()
Returns the port to use for external components. |
int |
getConnectionManagerListenerPort()
Returns the port to use for remote servers. |
org.apache.mina.transport.socket.nio.SocketAcceptor |
getMultiplexerSocketAcceptor()
|
Collection<ServerPort> |
getPorts()
Returns an array of the ports managed by this connection manager. |
int |
getServerListenerPort()
Returns the port to use for remote servers. |
org.apache.mina.transport.socket.nio.SocketAcceptor |
getSocketAcceptor()
|
org.apache.mina.transport.socket.nio.SocketAcceptor |
getSSLSocketAcceptor()
|
void |
initialize(XMPPServer server)
Initializes the basic module. |
boolean |
isClientListenerEnabled()
Returns true if the port listener for unsecured clients is available. |
boolean |
isClientSSLListenerEnabled()
Returns true if the port listener for secured clients is available. |
boolean |
isComponentListenerEnabled()
Returns true if the port listener for external components is available. |
boolean |
isConnectionManagerListenerEnabled()
Returns true if the port listener for connection managers is available. |
boolean |
isServerListenerEnabled()
Returns true if the port listener for remote servers is available. |
void |
setClientListenerPort(int port)
Sets the port to use for unsecured clients. |
void |
setClientSSLListenerPort(int port)
Sets the port to use for secured clients. |
void |
setComponentListenerPort(int port)
Sets the port to use for external components. |
void |
setConnectionManagerListenerPort(int port)
Sets the port to use for connection managers. |
void |
setServerListenerPort(int port)
Sets the port to use for remote servers. |
void |
start()
Starts the basic module. |
void |
stop()
Stops the basic module. |
| Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
|---|
destroy, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionManagerImpl()
| Method Detail |
|---|
public Collection<ServerPort> getPorts()
ConnectionManager
getPorts in interface ConnectionManager
public SocketReader createSocketReader(Socket sock,
boolean isSecure,
ServerPort serverPort,
boolean useBlockingMode)
throws IOException
ConnectionManager
createSocketReader in interface ConnectionManagersock - the new accepted socket by this manager.isSecure - true if the connection is secure.serverPort - holds information about the port on which the server is listening for
connections.useBlockingMode - true means that the server will use a thread per connection.
IOException - when there is an error creating the socket reader.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 enableClientListener(boolean enabled)
ConnectionManager
enableClientListener in interface ConnectionManagerenabled - true if new unsecured clients will be able to connect to the server.public boolean isClientListenerEnabled()
ConnectionManager
isClientListenerEnabled in interface ConnectionManagerpublic void enableClientSSLListener(boolean enabled)
ConnectionManager
enableClientSSLListener in interface ConnectionManagerenabled - true if new secured clients will be able to connect to the server.public boolean isClientSSLListenerEnabled()
ConnectionManager
isClientSSLListenerEnabled in interface ConnectionManagerpublic void enableComponentListener(boolean enabled)
ConnectionManager
enableComponentListener in interface ConnectionManagerenabled - true if new external components will be able to connect to the server.public boolean isComponentListenerEnabled()
ConnectionManager
isComponentListenerEnabled in interface ConnectionManagerpublic void enableServerListener(boolean enabled)
ConnectionManager
enableServerListener in interface ConnectionManagerenabled - true if new remote servers will be able to connect to the server.public boolean isServerListenerEnabled()
ConnectionManager
isServerListenerEnabled in interface ConnectionManagerpublic void enableConnectionManagerListener(boolean enabled)
ConnectionManager
enableConnectionManagerListener in interface ConnectionManagerenabled - true if new connection managers will be able to connect to the server.public boolean isConnectionManagerListenerEnabled()
ConnectionManager
isConnectionManagerListenerEnabled in interface ConnectionManagerpublic void setClientListenerPort(int port)
ConnectionManager
setClientListenerPort in interface ConnectionManagerport - the port to use for unsecured clients.public org.apache.mina.transport.socket.nio.SocketAcceptor getSocketAcceptor()
public int getClientListenerPort()
ConnectionManager
getClientListenerPort in interface ConnectionManagerpublic org.apache.mina.transport.socket.nio.SocketAcceptor getSSLSocketAcceptor()
public void setClientSSLListenerPort(int port)
ConnectionManager
setClientSSLListenerPort in interface ConnectionManagerport - the port to use for secured clients.public int getClientSSLListenerPort()
ConnectionManager
getClientSSLListenerPort in interface ConnectionManagerpublic void setComponentListenerPort(int port)
ConnectionManager
setComponentListenerPort in interface ConnectionManagerport - the port to use for external components.public org.apache.mina.transport.socket.nio.SocketAcceptor getComponentAcceptor()
public int getComponentListenerPort()
ConnectionManager
getComponentListenerPort in interface ConnectionManagerpublic void setServerListenerPort(int port)
ConnectionManager
setServerListenerPort in interface ConnectionManagerport - the port to use for remote servers.public int getServerListenerPort()
ConnectionManager
getServerListenerPort in interface ConnectionManagerpublic org.apache.mina.transport.socket.nio.SocketAcceptor getMultiplexerSocketAcceptor()
public void setConnectionManagerListenerPort(int port)
ConnectionManager
setConnectionManagerListenerPort in interface ConnectionManagerport - the port to use for connection managers.public int getConnectionManagerListenerPort()
ConnectionManager
getConnectionManagerListenerPort in interface ConnectionManager
public void certificateCreated(KeyStore keyStore,
String alias,
X509Certificate cert)
CertificateEventListener
certificateCreated in interface CertificateEventListenerkeyStore - key store where the certificate has been added.alias - the alias of the certificate in the keystore.cert - the new certificate created.
public void certificateDeleted(KeyStore keyStore,
String alias)
CertificateEventListener
certificateDeleted in interface CertificateEventListenerkeyStore - key store where the certificate is being deleted.alias - the alias of the certificate in the keystore.
public void certificateSigned(KeyStore keyStore,
String alias,
List<X509Certificate> certificates)
CertificateEventListener
certificateSigned in interface CertificateEventListenerkeyStore - key store where the certificate is stored.alias - the alias of the certificate in the keystore.certificates - chain of certificates. First certificate in the list is the certificate
being signed and last certificate in the list is the root certificate.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
|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||