|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.container.BasicModule
org.jivesoftware.messenger.spi.ConnectionManagerImpl
public class ConnectionManagerImpl
Constructor Summary | |
---|---|
ConnectionManagerImpl()
|
Method Summary | |
---|---|
void |
addSocket(Socket sock,
boolean isSecure,
ServerPort serverPort)
Adds a 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 |
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. |
int |
getComponentListenerPort()
Returns the port to use for external components. |
Iterator<ServerPort> |
getPorts()
Returns an array of the ports managed by this connection manager. |
int |
getServerListenerPort()
Returns the port to use for remote servers. |
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 |
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 |
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.messenger.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 Iterator<ServerPort> getPorts()
ConnectionManager
getPorts
in interface ConnectionManager
public void addSocket(Socket sock, boolean isSecure, ServerPort serverPort)
ConnectionManager
addSocket
in interface ConnectionManager
sock
- the socket to add to this manager for management.isSecure
- true if the connection is secure.serverPort
- holds information about the port on which the server is listening for
connections.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 enableClientListener(boolean enabled)
ConnectionManager
enableClientListener
in interface ConnectionManager
enabled
- true if new unsecured clients will be able to connect to the server.public boolean isClientListenerEnabled()
ConnectionManager
isClientListenerEnabled
in interface ConnectionManager
public void enableClientSSLListener(boolean enabled)
ConnectionManager
enableClientSSLListener
in interface ConnectionManager
enabled
- true if new secured clients will be able to connect to the server.public boolean isClientSSLListenerEnabled()
ConnectionManager
isClientSSLListenerEnabled
in interface ConnectionManager
public void enableComponentListener(boolean enabled)
ConnectionManager
enableComponentListener
in interface ConnectionManager
enabled
- true if new external components will be able to connect to the server.public boolean isComponentListenerEnabled()
ConnectionManager
isComponentListenerEnabled
in interface ConnectionManager
public void enableServerListener(boolean enabled)
ConnectionManager
enableServerListener
in interface ConnectionManager
enabled
- true if new remote servers will be able to connect to the server.public boolean isServerListenerEnabled()
ConnectionManager
isServerListenerEnabled
in interface ConnectionManager
public void setClientListenerPort(int port)
ConnectionManager
setClientListenerPort
in interface ConnectionManager
port
- the port to use for unsecured clients.public int getClientListenerPort()
ConnectionManager
getClientListenerPort
in interface ConnectionManager
public void setClientSSLListenerPort(int port)
ConnectionManager
setClientSSLListenerPort
in interface ConnectionManager
port
- the port to use for secured clients.public int getClientSSLListenerPort()
ConnectionManager
getClientSSLListenerPort
in interface ConnectionManager
public void setComponentListenerPort(int port)
ConnectionManager
setComponentListenerPort
in interface ConnectionManager
port
- the port to use for external components.public int getComponentListenerPort()
ConnectionManager
getComponentListenerPort
in interface ConnectionManager
public void setServerListenerPort(int port)
ConnectionManager
setServerListenerPort
in interface ConnectionManager
port
- the port to use for remote servers.public int getServerListenerPort()
ConnectionManager
getServerListenerPort
in interface ConnectionManager
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
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |