Add local_base_urls configuration to feed DaoConfig.setTreatBaseUrlsAsLocal()
This commit is contained in:
@@ -11,10 +11,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.*;
|
||||
|
||||
@ConfigurationProperties(prefix = "hapi.fhir")
|
||||
@Configuration
|
||||
@@ -77,6 +74,7 @@ public class AppProperties {
|
||||
|
||||
private Integer bundle_batch_pool_size = 20;
|
||||
private Integer bundle_batch_pool_max_size = 100;
|
||||
private List<String> local_base_urls = new ArrayList<>();
|
||||
|
||||
public Boolean getUse_apache_address_strategy() {
|
||||
return use_apache_address_strategy;
|
||||
@@ -190,7 +188,11 @@ public class AppProperties {
|
||||
this.supported_resource_types = supported_resource_types;
|
||||
}
|
||||
|
||||
public Logger getLogger() {
|
||||
public List<String> getSupported_resource_types(List<String> supported_resource_types) {
|
||||
return this.supported_resource_types;
|
||||
}
|
||||
|
||||
public Logger getLogger() {
|
||||
return logger;
|
||||
}
|
||||
|
||||
@@ -499,6 +501,10 @@ public class AppProperties {
|
||||
this.bundle_batch_pool_max_size = bundle_batch_pool_max_size;
|
||||
}
|
||||
|
||||
public List<String> getLocal_base_urls() {
|
||||
return local_base_urls;
|
||||
}
|
||||
|
||||
public static class Cors {
|
||||
private Boolean allow_Credentials = true;
|
||||
private List<String> allowed_origin = ImmutableList.of("*");
|
||||
|
||||
Reference in New Issue
Block a user