public class ConsoleProxyBaseServerFactoryImpl implements ConsoleProxyServerFactory { private static final Logger s_logger = Logger.getLogger(ConsoleProxyBaseServerFactoryImpl.class); public HttpServer createHttpServerInstance(int port) throws IOException { if (s_logger.isInfoEnabled()) s_logger.info("create HTTP server instance at port: " + port); return HttpServer.create(new InetSocketAddress(port), 5); } public SSLServerSocket createSSLServerSocket(int port) throws IOException { if (s_logger.isInfoEnabled()) s_logger.info("SSL server socket is not supported in ConsoleProxyBaseServerFactoryImpl"); return null; } }
public SSLServerSocket createSSLServerSocket(int port) throws IOException { if (s_logger.isInfoEnabled()) s_logger.info("SSL server socket is not supported in ConsoleProxyBaseServerFactoryImpl"); return null; }
public HttpServer createHttpServerInstance(int port) throws IOException { if (s_logger.isInfoEnabled()) s_logger.info("create HTTP server instance at port: " + port); return HttpServer.create(new InetSocketAddress(port), 5); }