public class BreadcrumbsHandler extends NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
Breadcrumbs model objects.| Constructor and Description |
|---|
BreadcrumbsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
preprocess(BreadcrumbsConfig cartridgeConfig)
Creates a breadcrumbs MDEX query.
|
Breadcrumbs |
process(BreadcrumbsConfig cartridgeConfig)
Creates a simple
Breadcrumbs model. |
protected BreadcrumbsConfig |
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, setNavigationStateprotected BreadcrumbsConfig wrapConfig(ContentItem pContentItem)
NavigationCartridgeHandlerContentItem 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<BreadcrumbsConfig,Breadcrumbs>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(BreadcrumbsConfig cartridgeConfig) throws CartridgeHandlerException
preprocess in interface CartridgeHandler<BreadcrumbsConfig>preprocess in class NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>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 Breadcrumbs process(BreadcrumbsConfig cartridgeConfig) throws CartridgeHandlerException
Breadcrumbs model. Subclasses can override the method to create more complex
models.process in interface CartridgeHandler<BreadcrumbsConfig>process in class NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>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.