public class SearchAdjustmentsHandler extends NavigationCartridgeHandler<SearchAdjustmentsConfig,SearchAdjustments>
SearchAdjustments
model objects.Constructor and Description |
---|
SearchAdjustmentsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
preprocess(SearchAdjustmentsConfig cartridgeConfig)
Creates an MDEX query with spell and phrase Did You Mean enabled.
|
SearchAdjustments |
process(SearchAdjustmentsConfig cartridgeConfig)
Always returns a SearchAdjustments object, even if no search adjustments have been suggested.
|
protected SearchAdjustmentsConfig |
wrapConfig(ContentItem pContentItem)
Wraps the input
ContentItem as a typed config object. |
createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState
protected SearchAdjustmentsConfig wrapConfig(ContentItem pContentItem)
NavigationCartridgeHandler
ContentItem
as a typed config object. It is not expected that
subclasses will mutate the input ContentItem
, beyond passing it into
their typed configuration class as a constructor argument.wrapConfig
in class NavigationCartridgeHandler<SearchAdjustmentsConfig,SearchAdjustments>
pContentItem
- the configuration for this cartridge handler. This will either be the
fully initialized configuration object, if a ContentItemInitializer
has been
set, or it will simply be the instance configuration.ConfigType
which wraps the input ContentItem
.NavigationCartridgeHandler.initialize(ContentItem)
,
NavigationCartridgeHandler.setContentItemInitializer(ContentItemInitializer)
public void preprocess(SearchAdjustmentsConfig cartridgeConfig) throws CartridgeHandlerException
preprocess
in interface CartridgeHandler<SearchAdjustmentsConfig>
preprocess
in class NavigationCartridgeHandler<SearchAdjustmentsConfig,SearchAdjustments>
cartridgeConfig
- the cartridge configuration returned by
CartridgeHandler.initialize(ContentItem)
. This cartridge configuration may
be modified by this handler. Note that this cartridge configuration is
also passed to CartridgeHandler.process(ContentItem)
.CartridgeHandlerException
- if an error occurs that is scoped to
an individual cartridge instance. This exception will not halt
the entire assembly process, which occurs across multiple cartridges;
instead, this exception will be packaged in the overall response model.
If an unchecked exception is thrown, then the entire assembly process
will be halted.public SearchAdjustments process(SearchAdjustmentsConfig cartridgeConfig) throws CartridgeHandlerException
process
in interface CartridgeHandler<SearchAdjustmentsConfig>
process
in class NavigationCartridgeHandler<SearchAdjustmentsConfig,SearchAdjustments>
cartridgeConfig
- the cartridge configuration returned by
CartridgeHandler.initialize(ContentItem)
. Note that this instance may have been modified by
the CartridgeHandler.preprocess(ContentItem)
method.CartridgeHandlerException
- if an error occurs that is scoped to
an individual cartridge instance. This exception will not halt
the entire assembly process, which occurs across multiple cartridges;
instead, this exception will be packaged in the overall response model.
If an unchecked exception is thrown, then the entire assembly process
will be halted.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.