public class SearchClaimProcessor
extends com.tridion.ambientdata.processing.AbstractClaimProcessor
Modifier and Type | Field and Description |
---|---|
static URI |
SEARCH_QUERY
Claim for search query.
|
Constructor and Description |
---|
SearchClaimProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
onRequestStart(ClaimStore claimStore) |
void |
onSessionStart(ClaimStore claimStore) |
static String |
parseReferrerQuery(String referrerUrl)
Parses the specified referrer string using the SmartTarget referrer configuration
and returns the search query if successful.
|
protected void |
processHeaders(ClaimStore store,
Map<String,String[]> headers)
It parses accept language information.
|
static String |
urlDecode(String text)
Decodes a application/x-www-form-urlencoded string using a specific encoding scheme.
|
static String |
urlEncode(String text)
Translates a string into application/x-www-form-urlencoded format using UTF-8 as the encoding scheme.
|
getMapFromClaimStore, onRequestEnd
public static final URI SEARCH_QUERY
protected void processHeaders(ClaimStore store, Map<String,String[]> headers) throws AmbientDataException
headers
- map of request headersstore
- The claim store that holds the current claim values.AmbientDataException
- in case of error.public static String parseReferrerQuery(String referrerUrl) throws AmbientDataException
referrerUrl
- The referrer string that should be parsed.null
.AmbientDataException
public static String urlEncode(String text)
text
- The value to encode.public static String urlDecode(String text)
text
- The value to decode.public void onRequestStart(ClaimStore claimStore) throws AmbientDataException
onRequestStart
in interface com.tridion.ambientdata.processing.ClaimProcessor
onRequestStart
in class com.tridion.ambientdata.processing.AbstractClaimProcessor
AmbientDataException
public void onSessionStart(ClaimStore claimStore) throws AmbientDataException
onSessionStart
in interface com.tridion.ambientdata.processing.ClaimProcessor
onSessionStart
in class com.tridion.ambientdata.processing.AbstractClaimProcessor
AmbientDataException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries