public class ZookeeperDependency extends Object
Constructor and Description |
---|
ZookeeperDependency() |
ZookeeperDependency(String path) |
ZookeeperDependency(String path,
LoadBalancerType loadBalancerType,
String contentTypeTemplate,
String version,
Map<String,Collection<String>> headers,
boolean required,
String stubs) |
Modifier and Type | Method and Description |
---|---|
String |
getContentTypeWithVersion()
Function that will replace the placeholder
VERSION_PLACEHOLDER_REGEX from the
contentTypeTemplate with value from version . |
Map<String,Collection<String>> |
getUpdatedHeaders(Map<String,Collection<String>> headers) |
public ZookeeperDependency()
public ZookeeperDependency(String path, LoadBalancerType loadBalancerType, String contentTypeTemplate, String version, Map<String,Collection<String>> headers, boolean required, String stubs)
public ZookeeperDependency(String path)
public String getContentTypeWithVersion()
VERSION_PLACEHOLDER_REGEX
from the
contentTypeTemplate
with value from version
.
e.g. having:
'application/vnd.some-service.$version+json'
'v1'
'application/vnd.some-service.v1+json'
public Map<String,Collection<String>> getUpdatedHeaders(Map<String,Collection<String>> headers)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.