public static IRequestMapper setRootRequestMapper ( final Application application , final int httpPort , final int httpsPort ) { final IRequestMapper httpsMapper = new HttpsMapper ( application . getRootRequestMapper ( ) , new HttpsConfig ( httpPort , httpsPort ) ) ; application . setRootRequestMapper ( httpsMapper ) ; return httpsMapper ; }
Sets the root request mapper for the given application from the given httpPort and httpsPort .