-
public final class ExperienceRequest.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Booleandebugprivate Map<String, List<String>>customVariablesprivate Stringurlprivate Stringrefererprivate List<String>tagsprivate List<String>keywordsprivate Stringzoneprivate Stringtitleprivate Stringdescriptionprivate StringcontentIdprivate StringcontentTypeprivate StringcontentCreatedprivate StringcontentAuthorprivate StringcontentSectionprivate BooleancontentIsNativeprivate CustomParameterscustomParameters
-
Constructor Summary
Constructors Constructor Description ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection, Boolean contentIsNative, CustomParameters customParameters)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection, Boolean contentIsNative)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url)ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables)ExperienceRequest.Builder(Boolean debug)ExperienceRequest.Builder()
-
Method Summary
Modifier and Type Method Description final BooleangetDebug()final UnitsetDebug(Boolean debug)final Map<String, List<String>>getCustomVariables()final UnitsetCustomVariables(Map<String, List<String>> customVariables)final StringgetUrl()final UnitsetUrl(String url)final StringgetReferer()final UnitsetReferer(String referer)final List<String>getTags()final UnitsetTags(List<String> tags)final List<String>getKeywords()final UnitsetKeywords(List<String> keywords)final StringgetZone()final UnitsetZone(String zone)final StringgetTitle()final UnitsetTitle(String title)final StringgetDescription()final UnitsetDescription(String description)final StringgetContentId()final UnitsetContentId(String contentId)final StringgetContentType()final UnitsetContentType(String contentType)final StringgetContentCreated()final UnitsetContentCreated(String contentCreated)final StringgetContentAuthor()final UnitsetContentAuthor(String contentAuthor)final StringgetContentSection()final UnitsetContentSection(String contentSection)final BooleangetContentIsNative()final UnitsetContentIsNative(Boolean contentIsNative)final CustomParametersgetCustomParameters()final UnitsetCustomParameters(CustomParameters customParameters)final <ERROR CLASS>debug(Boolean debug)Sets "debug" flag for request final <ERROR CLASS>customVariable(String key, String value)Adds value for custom variable final <ERROR CLASS>customVariable(String key, List<String> value)Adds custom variable to request final <ERROR CLASS>customVariables(Map<String, List<String>> customVariables)Adds map of custom variables for request final <ERROR CLASS>clearCustomVariables()Clears added to request custom variables final <ERROR CLASS>url(String url)Sets "url" parameter for request final <ERROR CLASS>referer(String referer)Sets "referrer" parameter for request final <ERROR CLASS>tag(String tag)Adds "tag" parameter to request final <ERROR CLASS>tags(Collection<String> tags)Adds multiple "tag" parameters to request final <ERROR CLASS>keyword(String keyword)Adds "keyword" parameter to request final <ERROR CLASS>keywords(Collection<String> keywords)Adds multiple "keyword" parameters to request final <ERROR CLASS>zone(String zone)Sets "zone" parameter for request final <ERROR CLASS>title(String title)Sets "title" parameter for request final <ERROR CLASS>description(String description)Sets "description" parameter for request final <ERROR CLASS>contentId(String contentId)Sets "content id" parameter for request final <ERROR CLASS>contentType(String contentType)Sets "content type" parameter for request final <ERROR CLASS>contentCreated(String contentCreated)Sets "content created" parameter for request final <ERROR CLASS>contentCreated(Date contentCreated)Sets "content created" parameter for request final <ERROR CLASS>contentAuthor(String contentAuthor)Sets "content author" parameter for request final <ERROR CLASS>contentSection(String contentSection)Sets "content section" parameter for request final <ERROR CLASS>contentIsNative(Boolean contentIsNative)Sets "content is native" flag for request final <ERROR CLASS>customParams(CustomParameters customParameters)Sets custom parameters for request final ExperienceRequestbuild()Builds request -
-
Constructor Detail
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection, Boolean contentIsNative, CustomParameters customParameters)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection, Boolean contentIsNative)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor, String contentSection)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated, String contentAuthor)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType, String contentCreated)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId, String contentType)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description, String contentId)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title, String description)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone, String title)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords, String zone)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags, List<String> keywords)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer, List<String> tags)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url, String referer)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables, String url)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug, Map<String, List<String>> customVariables)
-
ExperienceRequest.Builder
ExperienceRequest.Builder(Boolean debug)
-
ExperienceRequest.Builder
ExperienceRequest.Builder()
-
-
Method Detail
-
getCustomVariables
final Map<String, List<String>> getCustomVariables()
-
getReferer
final String getReferer()
-
setReferer
final Unit setReferer(String referer)
-
getKeywords
final List<String> getKeywords()
-
setKeywords
final Unit setKeywords(List<String> keywords)
-
getDescription
final String getDescription()
-
setDescription
final Unit setDescription(String description)
-
getContentId
final String getContentId()
-
setContentId
final Unit setContentId(String contentId)
-
getContentType
final String getContentType()
-
setContentType
final Unit setContentType(String contentType)
-
getContentCreated
final String getContentCreated()
-
setContentCreated
final Unit setContentCreated(String contentCreated)
-
getContentAuthor
final String getContentAuthor()
-
setContentAuthor
final Unit setContentAuthor(String contentAuthor)
-
getContentSection
final String getContentSection()
-
setContentSection
final Unit setContentSection(String contentSection)
-
getContentIsNative
final Boolean getContentIsNative()
-
setContentIsNative
final Unit setContentIsNative(Boolean contentIsNative)
-
getCustomParameters
final CustomParameters getCustomParameters()
-
setCustomParameters
final Unit setCustomParameters(CustomParameters customParameters)
-
debug
final <ERROR CLASS> debug(Boolean debug)
Sets "debug" flag for request
- Parameters:
debug- Debug value
-
customVariable
final <ERROR CLASS> customVariable(String key, String value)
Adds value for custom variable
- Parameters:
key- Custom variable keyvalue- Custom variable value
-
customVariable
final <ERROR CLASS> customVariable(String key, List<String> value)
Adds custom variable to request
- Parameters:
key- Custom variable keyvalue- Custom variable value
-
customVariables
final <ERROR CLASS> customVariables(Map<String, List<String>> customVariables)
Adds map of custom variables for request
- Parameters:
customVariables- Map of custom variables' values by their keys
-
clearCustomVariables
final <ERROR CLASS> clearCustomVariables()
Clears added to request custom variables
-
url
final <ERROR CLASS> url(String url)
Sets "url" parameter for request
- Parameters:
url- Url value
-
referer
final <ERROR CLASS> referer(String referer)
Sets "referrer" parameter for request
- Parameters:
referer- Referrer value
-
tags
final <ERROR CLASS> tags(Collection<String> tags)
Adds multiple "tag" parameters to request
- Parameters:
tags- Collection of tag values
-
keyword
final <ERROR CLASS> keyword(String keyword)
Adds "keyword" parameter to request
- Parameters:
keyword- Keyword value
-
keywords
final <ERROR CLASS> keywords(Collection<String> keywords)
Adds multiple "keyword" parameters to request
- Parameters:
keywords- Collection of keyword values
-
zone
final <ERROR CLASS> zone(String zone)
Sets "zone" parameter for request
- Parameters:
zone- Zone value
-
title
final <ERROR CLASS> title(String title)
Sets "title" parameter for request
- Parameters:
title- Title value
-
description
final <ERROR CLASS> description(String description)
Sets "description" parameter for request
- Parameters:
description- Description value
-
contentId
final <ERROR CLASS> contentId(String contentId)
Sets "content id" parameter for request
- Parameters:
contentId- Content Id
-
contentType
final <ERROR CLASS> contentType(String contentType)
Sets "content type" parameter for request
- Parameters:
contentType- Content Type
-
contentCreated
final <ERROR CLASS> contentCreated(String contentCreated)
Sets "content created" parameter for request
- Parameters:
contentCreated- ISO 8601-formatted string that includes the published date and time of the content
-
contentCreated
final <ERROR CLASS> contentCreated(Date contentCreated)
Sets "content created" parameter for request
- Parameters:
contentCreated- Content created date value
-
contentAuthor
final <ERROR CLASS> contentAuthor(String contentAuthor)
Sets "content author" parameter for request
- Parameters:
contentAuthor- Content author value
-
contentSection
final <ERROR CLASS> contentSection(String contentSection)
Sets "content section" parameter for request
- Parameters:
contentSection- Content section value
-
contentIsNative
final <ERROR CLASS> contentIsNative(Boolean contentIsNative)
Sets "content is native" flag for request
- Parameters:
contentIsNative- True, if content is native, otherwise False
-
customParams
final <ERROR CLASS> customParams(CustomParameters customParameters)
Sets custom parameters for request
- Parameters:
customParameters- Custom parameters object
-
build
final ExperienceRequest build()
Builds request
-
-
-
-