public class TargetHostsBuilder extends Object implements ITargetHostsBuilder
| Constructor and Description |
|---|
TargetHostsBuilder()
Instantiates a new target hosts builder.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
setTargetHostsFromCmsQueryUrl(String cmsQueryUrl)
Sets the target hosts from cms query url.
|
List<String> |
setTargetHostsFromCmsQueryUrl(String cmsQueryUrl,
String projection)
Sets the target hosts from cms query url.
|
List<String> |
setTargetHostsFromCmsQueryUrl(String cmsQueryUrl,
String projection,
String token)
Sets the target hosts from cms query url with projection and authorization token.
|
List<String> |
setTargetHostsFromJsonPath(String jsonPath,
String sourcePath,
HostsSourceType sourceType)
TODO https://github.com/jayway/JsonPath
|
List<String> |
setTargetHostsFromLineByLineText(String sourcePath,
HostsSourceType sourceType)
get target hosts from line by line.
|
List<String> |
setTargetHostsFromList(List<String> targetHosts)
Sets the target hosts from list.
|
List<String> |
setTargetHostsFromString(String targetHostsStr)
Sets the target hosts from string.
|
public TargetHostsBuilder()
public List<String> setTargetHostsFromList(List<String> targetHosts)
ITargetHostsBuildersetTargetHostsFromList in interface ITargetHostsBuildertargetHosts - the target hostspublic List<String> setTargetHostsFromString(String targetHostsStr)
ITargetHostsBuildersetTargetHostsFromString in interface ITargetHostsBuildertargetHostsStr - the target hosts strpublic List<String> setTargetHostsFromJsonPath(String jsonPath, String sourcePath, HostsSourceType sourceType) throws TargetHostsLoadException
setTargetHostsFromJsonPath in interface ITargetHostsBuilderjsonPath - the json pathsourcePath - the source pathsourceType - the source typeTargetHostsLoadException - the target hosts load exceptionpublic List<String> setTargetHostsFromLineByLineText(String sourcePath, HostsSourceType sourceType) throws TargetHostsLoadException
setTargetHostsFromLineByLineText in interface ITargetHostsBuildersourcePath - the source pathsourceType - the source typeTargetHostsLoadException - the target hosts load exceptionpublic List<String> setTargetHostsFromCmsQueryUrl(String cmsQueryUrl) throws TargetHostsLoadException
ITargetHostsBuildersetTargetHostsFromCmsQueryUrl in interface ITargetHostsBuildercmsQueryUrl - the cms query urlTargetHostsLoadException - the target hosts load exceptionpublic List<String> setTargetHostsFromCmsQueryUrl(String cmsQueryUrl, String projection)
ITargetHostsBuildersetTargetHostsFromCmsQueryUrl in interface ITargetHostsBuildercmsQueryUrl - the cms query urlprojection - the projectionpublic List<String> setTargetHostsFromCmsQueryUrl(String cmsQueryUrl, String projection, String token)
ITargetHostsBuildersetTargetHostsFromCmsQueryUrl in interface ITargetHostsBuildercmsQueryUrl - the cms query urlprojection - the projectiontoken - the cms authorization tokenCopyright © 2015–2017 eBay. All rights reserved.