Source:
public RestServerConfig(VerifiableProperties verifiableProperties) { restServerBlobStorageServiceFactory = verifiableProperties.getString("rest.server.blob.storage.service.factory"); restServerNioServerFactory = verifiableProperties.getString("rest.server.nio.server.factory", "com.github.ambry.rest.NettyServerFactory"); restServerRequestHandlerScalingUnitCount = verifiableProperties.getIntInRange("rest.server.request.handler.scaling.unit.count", 5, 0, Integer.MAX_VALUE); restServerRequestHandlerFactory = verifiableProperties .getString("rest.server.request.handler.factory", "com.github.ambry.rest.AsyncRequestResponseHandlerFactory"); restServerResponseHandlerScalingUnitCount = verifiableProperties.getIntInRange("rest.server.response.handler.scaling.unit.count", 5, 0, Integer.MAX_VALUE); restServerResponseHandlerFactory = verifiableProperties .getString("rest.server.response.handler.factory", "com.github.ambry.rest.AsyncRequestResponseHandlerFactory"); restServerRouterFactory = verifiableProperties .getString("rest.server.router.factory", "com.github.ambry.router.CoordinatorBackedRouterFactory"); restServerPublicAccessLogRequestHeaders = verifiableProperties .getString("rest.server.public.access.log.reqeust.headers", "Host,Referer,User-Agent,Content-Length,x-ambry-content-type,x-ambry-owner-id,x-li-ambry-client,x-ambry-ttl,x-ambry-private,x-ambry-service-id,X-Forwarded-For"); restServerPublicAccessLogResponseHeaders = verifiableProperties.getString("rest.server.public.access.log.response.headers", "Location,x-ambry-blob-size"); restServerHealthCheckUri = verifiableProperties.getString("rest.server.restServerHealthCheckUri", "/healthCheck"); }

Target:
public RestServerConfig(VerifiableProperties verifiableProperties) { restServerBlobStorageServiceFactory = verifiableProperties.getString("rest.server.blob.storage.service.factory"); restServerNioServerFactory = verifiableProperties.getString("rest.server.nio.server.factory", "com.github.ambry.rest.NettyServerFactory"); restServerRequestHandlerScalingUnitCount = verifiableProperties.getIntInRange("rest.server.request.handler.scaling.unit.count", 5, 0, Integer.MAX_VALUE); restServerRequestHandlerFactory = verifiableProperties .getString("rest.server.request.handler.factory", "com.github.ambry.rest.AsyncRequestResponseHandlerFactory"); restServerResponseHandlerScalingUnitCount = verifiableProperties.getIntInRange("rest.server.response.handler.scaling.unit.count", 5, 0, Integer.MAX_VALUE); restServerResponseHandlerFactory = verifiableProperties .getString("rest.server.response.handler.factory", "com.github.ambry.rest.AsyncRequestResponseHandlerFactory"); restServerRouterFactory = verifiableProperties .getString("rest.server.router.factory", "com.github.ambry.router.CoordinatorBackedRouterFactory"); restServerPublicAccessLogRequestHeaders = verifiableProperties .getString("rest.server.public.access.log.request.headers", "Host,Referer,User-Agent,Content-Length,x-ambry-content-type,x-ambry-owner-id,x-ambry-ttl,x-ambry-private,x-ambry-service-id,X-Forwarded-For"); restServerPublicAccessLogResponseHeaders = verifiableProperties.getString("rest.server.public.access.log.response.headers", "Location,x-ambry-blob-size"); restServerHealthCheckUri = verifiableProperties.getString("rest.server.health.check.uri", "/healthCheck"); }