public class SearchAdjustmentsRequestParamMarshaller extends RequestParamMarshaller
SearchSuggestionsHandler configuration from the parameters present
in a request URL. The following mapping is used:
DYM_ENABLED_PARAMETER ("Nty") -> SearchAdjustmentsConfig.setSpellSuggestionEnabled(boolean)DYM_ENABLED_PARAMETER ("Nty") -> SearchAdjustmentsConfig.setPhraseSuggestionEnabled(boolean)The anticipated most common use case is to turn both phrase and spell suggestion on and off at the same time, so this class uses a single URL parameter to control both.
| Modifier and Type | Field and Description |
|---|---|
static String |
DYM_ENABLED_PARAMETER
Name of request parameter, "Nty", that enables/disables search suggestions.
|
mRequest, mRequestMap| Constructor and Description |
|---|
SearchAdjustmentsRequestParamMarshaller()
Creates the marshaller for reading request parameters related
to
SearchAdjustmentsConfig. |
| Modifier and Type | Method and Description |
|---|---|
ContentItem |
marshall()
Creates a new ContentItem and populates it with information from the
HttpServletRequest.
|
convertToBoolean, convertToInt, convertToList, convertToLong, override, setHttpServletRequest, setRequestMappublic static final String DYM_ENABLED_PARAMETER
public SearchAdjustmentsRequestParamMarshaller()
SearchAdjustmentsConfig.public ContentItem marshall()
RequestParamMarshallermarshall in class RequestParamMarshallerCopyright © 2013, Oracle and/or its affiliates. All rights reserved.