com.endeca.infront.cartridge
Class BreadcrumbsHandler
java.lang.Object
   com.endeca.infront.cartridge.NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
com.endeca.infront.cartridge.NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
       com.endeca.infront.cartridge.BreadcrumbsHandler
com.endeca.infront.cartridge.BreadcrumbsHandler
- All Implemented Interfaces: 
- CartridgeHandler<BreadcrumbsConfig>
- public class BreadcrumbsHandler 
- extends NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
Cartridge handler that creates Breadcrumbs model objects.
 
 
| Methods inherited from class com.endeca.infront.cartridge.NavigationCartridgeHandler | 
| createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BreadcrumbsHandler
public BreadcrumbsHandler()
wrapConfig
protected BreadcrumbsConfig wrapConfig(ContentItem pContentItem)
- Description copied from class: NavigationCartridgeHandler
- Wraps the input ContentItemas a typed config object. It is not expected that
 subclasses will mutate the inputContentItem, beyond passing it into
 their typed configuration class as a constructor argument.
 
- 
- Specified by:
- wrapConfigin class- NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
 
- 
- Parameters:
- pContentItem- the configuration for this cartridge handler. This will either be the
 fully initialized configuration object, if a- ContentItemInitializerhas been
 set, or it will simply be the instance configuration.
- Returns:
- an instance of ConfigTypewhich wraps the inputContentItem.
- See Also:
- NavigationCartridgeHandler.initialize(ContentItem),- NavigationCartridgeHandler.setContentItemInitializer(ContentItemInitializer)
 
preprocess
public void preprocess(BreadcrumbsConfig cartridgeConfig)
                throws CartridgeHandlerException
- Creates a breadcrumbs MDEX query.
 
- 
- Specified by:
- preprocessin interface- CartridgeHandler<BreadcrumbsConfig>
- Overrides:
- preprocessin class- NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
 
- 
- Parameters:
- 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).
- Throws:
- 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.
 
process
public Breadcrumbs process(BreadcrumbsConfig cartridgeConfig)
                    throws CartridgeHandlerException
- Creates a simple Breadcrumbsmodel. Subclasses can override the method to create more complex
 models.
 
- 
- Specified by:
- processin interface- CartridgeHandler<BreadcrumbsConfig>
- Overrides:
- processin class- NavigationCartridgeHandler<BreadcrumbsConfig,Breadcrumbs>
 
- 
- Parameters:
- cartridgeConfig- the cartridge configuration returned by- CartridgeHandler.initialize(ContentItem). Note that this instance may have been modified by
 the- CartridgeHandler.preprocess(ContentItem)method.
- Returns:
- the output value for this cartridge. If null is returned, then
   the corresponding node in the output tree will be deleted.
- Throws:
- 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 © 2012, Oracle and/or its affiliates. All rights reserved.