public static ServerConnector createSocketConnector ( Server server , String host , int port ) { Assert . notNull ( server , "'server' must not be null" ) ; Assert . notNull ( host , "'host' must not be null" ) ; HttpConnectionFactory httpConnectionFactory = createHttpConnectionFactory ( ) ; ServerConnector connector = new ServerConnector ( server , httpConnectionFactory ) ; initializeConnector ( connector , host , port ) ; return connector ; }
Creates an ordinary non - secured Jetty server jetty .