|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionManager
Coordinates connections (accept, read, termination) on the server.
Method Summary | |
---|---|
void |
addSocket(Socket socket,
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. |
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. |
Method Detail |
---|
Iterator<ServerPort> getPorts()
void addSocket(Socket socket, boolean isSecure, ServerPort serverPort) throws org.xmlpull.v1.XmlPullParserException
socket
- 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.
org.xmlpull.v1.XmlPullParserException
void enableClientListener(boolean enabled)
enabled
- true if new unsecured clients will be able to connect to the server.boolean isClientListenerEnabled()
void enableClientSSLListener(boolean enabled)
enabled
- true if new secured clients will be able to connect to the server.boolean isClientSSLListenerEnabled()
void enableComponentListener(boolean enabled)
enabled
- true if new external components will be able to connect to the server.boolean isComponentListenerEnabled()
void enableServerListener(boolean enabled)
enabled
- true if new remote servers will be able to connect to the server.boolean isServerListenerEnabled()
void setClientListenerPort(int port)
port
- the port to use for unsecured clients.int getClientListenerPort()
void setClientSSLListenerPort(int port)
port
- the port to use for secured clients.int getClientSSLListenerPort()
void setComponentListenerPort(int port)
port
- the port to use for external components.int getComponentListenerPort()
void setServerListenerPort(int port)
port
- the port to use for remote servers.int getServerListenerPort()
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |