1 11 12 package org.jivesoftware.messenger; 13 14 import java.net.Socket ; 15 import java.util.Iterator ; 16 import org.xmlpull.v1.XmlPullParserException; 17 18 23 public interface ConnectionManager { 24 25 31 public Iterator <ServerPort> getPorts(); 32 33 41 public void addSocket(Socket socket, boolean isSecure, ServerPort serverPort) 42 throws XmlPullParserException; 43 44 51 public void enableClientListener(boolean enabled); 52 53 60 public boolean isClientListenerEnabled(); 61 62 69 public void enableClientSSLListener(boolean enabled); 70 71 78 public boolean isClientSSLListenerEnabled(); 79 80 87 public void enableComponentListener(boolean enabled); 88 89 96 public boolean isComponentListenerEnabled(); 97 98 105 public void enableServerListener(boolean enabled); 106 107 114 public boolean isServerListenerEnabled(); 115 116 121 public void setClientListenerPort(int port); 122 123 128 public int getClientListenerPort(); 129 130 135 public void setClientSSLListenerPort(int port); 136 137 142 public int getClientSSLListenerPort(); 143 144 149 public void setComponentListenerPort(int port); 150 151 156 public int getComponentListenerPort(); 157 158 164 public void setServerListenerPort(int port); 165 166 172 public int getServerListenerPort(); 173 } 174 | Popular Tags |