protected void initHttpSystem ( SystemManager system , ServerBartender selfServer ) throws IOException { //RootConfigBoot rootConfig = getRootConfig(); String clusterId = selfServer . getClusterId ( ) ; //ClusterConfigBoot clusterConfig = rootConfig.findCluster(clusterId); String serverHeader = config ( ) . get ( "server.header" ) ; if ( serverHeader != null ) { } else if ( ! CurrentTime . isTest ( ) ) { serverHeader = getProgramName ( ) + "/" + Version . getVersion ( ) ; } else { serverHeader = getProgramName ( ) + "/1.1" ; } // XXX: need cleaner config class names (root vs cluster at minimum) /* ServerContainerConfig serverConfig = new ServerContainerConfig(this, system, selfServer); */ // rootConfig.getProgram().configure(serverConfig); //clusterConfig.getProgram().configure(serverConfig); /* ServerConfig config = new ServerConfig(serverConfig); clusterConfig.getServerDefault().configure(config); ServerConfigBoot serverConfigBoot = rootConfig.findServer(selfServer.getDisplayName()); if (serverConfigBoot != null) { serverConfigBoot.getServerProgram().configure(config); } */ /* _args.getProgram().configure(config); */ // _bootServerConfig.getServerProgram().configure(config); // serverConfig.init(); //int port = getServerPort(); HttpContainerBuilder httpBuilder = createHttpBuilder ( selfServer , serverHeader ) ; // serverConfig.getProgram().configure(httpBuilder); //httpBuilder.init(); //PodSystem.createAndAddSystem(httpBuilder); HttpSystem . createAndAddSystem ( httpBuilder ) ; //return http; }
Configures the selected server from the boot config .