com.endeca.infront.cartridge
Class StatsPageCartridgeHandler

java.lang.Object
  extended by com.endeca.infront.assembler.AbstractCartridgeHandler
      extended by com.endeca.infront.cartridge.StatsPageCartridgeHandler
All Implemented Interfaces:
CartridgeHandler<ContentItem>

public class StatsPageCartridgeHandler
extends AbstractCartridgeHandler

An implementation of CartridgeHandler that provides content for the performance stats page.


Constructor Summary
StatsPageCartridgeHandler()
           
 
Method Summary
 ContentItem process(ContentItem pContentItem)
          If a StatsPageTimeEventSerializer has been set, stores performance information in the supplied ContentItem.
 void setStatsPageSerializer(StatsPageTimeEventSerializer serializer)
          Sets the serializer used to store performance information.
 
Methods inherited from class com.endeca.infront.assembler.AbstractCartridgeHandler
initialize, preprocess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsPageCartridgeHandler

public StatsPageCartridgeHandler()
Method Detail

setStatsPageSerializer

public void setStatsPageSerializer(StatsPageTimeEventSerializer serializer)
Sets the serializer used to store performance information.


process

public ContentItem process(ContentItem pContentItem)
                    throws CartridgeHandlerException
If a StatsPageTimeEventSerializer has been set, stores performance information in the supplied ContentItem.

Parameters:
pContentItem - 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.