Source:
public FrontendConfig(VerifiableProperties verifiableProperties) { frontendCacheValiditySeconds = verifiableProperties.getLong("frontend.cache.validity.seconds", 365 * 24 * 60 * 60); frontendIdConverterFactory = verifiableProperties.getString("frontend.id.converter.factory", "com.github.ambry.frontend.AmbryIdConverterFactory"); frontendSecurityServiceFactory = verifiableProperties.getString("frontend.security.service.factory", "com.github.ambry.frontend.AmbrySecurityServiceFactory"); frontendAccountServiceFactory = verifiableProperties.getString("frontend.account.service.factory", "com.github.ambry.account.InMemoryUnknownAccountServiceFactory"); frontendUrlSigningServiceFactory = verifiableProperties.getString("frontend.url.signing.service.factory", "com.github.ambry.frontend.AmbryUrlSigningServiceFactory"); frontendPathPrefixesToRemove = Arrays.asList(verifiableProperties.getString("frontend.path.prefixes.to.remove", "").split(",")); frontendChunkedGetResponseThresholdInBytes = verifiableProperties.getInt("frontend.chunked.get.response.threshold.in.bytes", 8192); frontendAllowServiceIdBasedPostRequest = verifiableProperties.getBoolean("frontend.allow.service.id.based.post.request", true); frontendUrlSignerUploadEndpoint = verifiableProperties.getString("frontend.url.signer.upload.endpoint", "http://localhost:1174"); frontendUrlSignerDownloadEndpoint = verifiableProperties.getString("frontend.url.signer.download.endpoint", "http://localhost:1174"); frontendUrlSignerDefaultUrlTtlSecs = verifiableProperties.getLongInRange("frontend.url.signer.default.url.ttl.secs", 5 * 60, 0, Long.MAX_VALUE); frontendUrlSignerDefaultMaxUploadSizeBytes = verifiableProperties.getLongInRange("frontend.url.signer.default.max.upload.size.bytes", 100 * 1024 * 1024, 0, Long.MAX_VALUE); frontendUrlSignerMaxUrlTtlSecs = verifiableProperties.getLongInRange("frontend.url.signer.max.url.ttl.secs", 60 * 60, 0, Long.MAX_VALUE); }

Target:
public FrontendConfig(VerifiableProperties verifiableProperties) { frontendCacheValiditySeconds = verifiableProperties.getLong("frontend.cache.validity.seconds", 365 * 24 * 60 * 60); frontendIdConverterFactory = verifiableProperties.getString("frontend.id.converter.factory", "com.github.ambry.frontend.AmbryIdConverterFactory"); frontendSecurityServiceFactory = verifiableProperties.getString("frontend.security.service.factory", "com.github.ambry.frontend.AmbrySecurityServiceFactory"); frontendAccountServiceFactory = verifiableProperties.getString("frontend.account.service.factory", "com.github.ambry.account.InMemoryUnknownAccountServiceFactory"); frontendUrlSigningServiceFactory = verifiableProperties.getString("frontend.url.signing.service.factory", "com.github.ambry.frontend.AmbryUrlSigningServiceFactory"); frontendPathPrefixesToRemove = Arrays.asList(verifiableProperties.getString("frontend.path.prefixes.to.remove", "").split(",")); frontendChunkedGetResponseThresholdInBytes = verifiableProperties.getInt("frontend.chunked.get.response.threshold.in.bytes", 8192); frontendAllowServiceIdBasedPostRequest = verifiableProperties.getBoolean("frontend.allow.service.id.based.post.request", true); frontendUrlSignerUploadEndpoint = verifiableProperties.getString("frontend.url.signer.upload.endpoint", "http://localhost:1174"); frontendUrlSignerDownloadEndpoint = verifiableProperties.getString("frontend.url.signer.download.endpoint", "http://localhost:1174"); frontendUrlSignerDefaultMaxUploadSizeBytes = verifiableProperties.getLongInRange("frontend.url.signer.default.max.upload.size.bytes", 100 * 1024 * 1024, 0, Long.MAX_VALUE); frontendUrlSignerMaxUrlTtlSecs = verifiableProperties.getLongInRange("frontend.url.signer.max.url.ttl.secs", 60 * 60, 0, Long.MAX_VALUE); frontendUrlSignerDefaultUrlTtlSecs = verifiableProperties.getLongInRange("frontend.url.signer.default.url.ttl.secs", 5 * 60, 0, frontendUrlSignerMaxUrlTtlSecs); }