private ServerConnector createConnector(Server server, SslContextFactory sslContextFactory, int port) {
    final ServerConnector connector = new ServerConnector(server, sslContextFactory);
    connector.setPort(port);
    connector.setReuseAddress(true);
    HttpConnectionFactory httpFactory = connector.getConnectionFactory(HttpConnectionFactory.class);
    // do not leak information
    if (httpFactory != null) {
      HttpConfiguration httpConf = httpFactory.getHttpConfiguration();
      httpConf.setSendServerVersion(false);
      httpConf.setSendXPoweredBy(false);
    }
    return connector;
  }
Creates a server instance and a connector on a given port.

@param server            the server instance
@param sslContextFactory the ssl factory
@param port              the port
@return the server connector listening to the port
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ServletServerBuilder.java