package at.gv.egiz.moazs.config; import at.gv.zustellung.app2mzs.xsd.ConfigType; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import static at.gv.zustellung.app2mzs.xsd.ConfigType.configTypeBuilder; import static at.gv.zustellung.app2mzs.xsd.ServerType.serverTypeBuilder; @Configuration public class DeliveryRequestAugmenterConfig { @Value("${msg.default.url}") private String zuseUrlID; @Bean public ConfigType defaultMzsConfig() { var server = serverTypeBuilder() .withZUSEUrlID(zuseUrlID) .withX509(null) //todo load cert! .build(); return configTypeBuilder() .withPerformQueryPersonRequest(false) .withServer(server) .build(); } }