Creates a new ImConnection.returnthe new ImConnection.throwsIMException if an error occurs during creating a connection. if ("IMPS".equals(config.getProtocolName())) { return new ImpsConnection((ImpsConnectionConfig) config); } else { throw new ImException("Unsupported protocol"); }
if ("IMPS".equals(config.getProtocolName())) { return new ImpsConnection((ImpsConnectionConfig) config); } else { throw new ImException("Unsupported protocol"); }
Gets the singleton instance of the factory.returnthe singleton instance. if (sInstance == null) { sInstance = new ConnectionFactory(); } return sInstance;
if (sInstance == null) { sInstance = new ConnectionFactory(); } return sInstance;