/** * Appends the contents of one or more files or resources to an transaction. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param transaction The transaction to add the contents of the file to. * @return The transaction, to allow chaining. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction addToTransactionFromFile( String containers, String host, String port, String contextRoot, Transaction transaction) throws ContainerConfigException { List<Map<String, Object>> config = loadContainers(containers); addHostAndPortToDefaultContainer(config, host, port,contextRoot); addContainersToTransaction(transaction, config); return transaction; }
/** * Appends the contents of one or more files or resources to an transaction. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param transaction The transaction to add the contents of the file to. * @return The transaction, to allow chaining. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction addToTransactionFromFile( String containers, String host, String port, String contextRoot, Transaction transaction) throws ContainerConfigException { List<Map<String, Object>> config = loadContainers(containers); addHostAndPortToDefaultContainer(config, host, port,contextRoot); addContainersToTransaction(transaction, config); return transaction; }
/** * Appends the contents of one or more files or resources to an transaction. * * @param containers The comma-separated list of files or resources to load * the container configurations from. * @param host The hostname where Shindig is running. * @param port The port number where Shindig is receiving requests. * @param transaction The transaction to add the contents of the file to. * @return The transaction, to allow chaining. * @throws ContainerConfigException If there was a problem reading the files. */ public static Transaction addToTransactionFromFile( String containers, String host, String port, String contextRoot, Transaction transaction) throws ContainerConfigException { List<Map<String, Object>> config = loadContainers(containers); addHostAndPortToDefaultContainer(config, host, port,contextRoot); addContainersToTransaction(transaction, config); return transaction; }