public class AggregateFilter extends AbstractFilter
AbstractFilter.AjaxRequestCondition, AbstractFilter.AnyOfCondition, AbstractFilter.ConfigurationCondition, AbstractFilter.EditModeCondition, AbstractFilter.ExecutionCondition, AbstractFilter.MainResourceCondition, AbstractFilter.ModeCondition, AbstractFilter.ModuleCondition, AbstractFilter.NodeTypeCondition, AbstractFilter.NotCondition, AbstractFilter.PatternCondition, AbstractFilter.RequestAttributeCondition, AbstractFilter.RequestCondition, AbstractFilter.RequestHeaderCondition, AbstractFilter.RequestParameterCondition, AbstractFilter.SiteTemplateSetCondition, AbstractFilter.TemplateCondition, AbstractFilter.TemplateTypeCondition, AbstractFilter.WebflowRequestCondition| Modifier and Type | Field and Description |
|---|---|
static String |
AGGREGATING |
static String |
AGGREGATING_KEY |
static String |
RENDERING_FINAL_KEY |
static String |
RENDERING_KEY |
static String |
RESOURCES_STACK |
static String |
SKIP_AGGREGATION |
service| Constructor and Description |
|---|
AggregateFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
aggregateContent(String content,
RenderContext renderContext)
Aggregate the content that are inside the fragment to get a full HTML content with all sub modules embedded.
|
String |
execute(String previousOut,
RenderContext renderContext,
Resource resource,
RenderChain chain) |
void |
finalize(RenderContext renderContext,
Resource resource,
RenderChain renderChain) |
protected String |
generateContent(RenderContext renderContext,
String key)
Generates content for a sub fragment.
|
String |
prepare(RenderContext renderContext,
Resource resource,
RenderChain chain) |
void |
setKeyGenerator(CacheKeyGenerator keyGenerator) |
static boolean |
skipAggregation(javax.servlet.ServletRequest request)
Utility method to check if the aggregation is skipped.
|
areConditionsMatched, compareTo, equals, getContentForError, getDescription, getPriority, hashCode, isDisabled, setDescription, setDisabled, setPriority, setRenderService, toStringaddCondition, addCondition, getConditionsSummary, setApplyOnConfigurations, setApplyOnEditMode, setApplyOnMainResource, setApplyOnModes, setApplyOnModules, setApplyOnNodeTypes, setApplyOnSiteTemplateSets, setApplyOnTemplates, setApplyOnTemplateTypes, setConditions, setSkipOnAjaxRequest, setSkipOnConfiguration, setSkipOnConfigurations, setSkipOnEditMode, setSkipOnMainResource, setSkipOnModes, setSkipOnModules, setSkipOnNodeTypes, setSkipOnTemplates, setSkipOnTemplateTypes, setSkipOnWebflowRequestpublic static final String RENDERING_KEY
public static final String RENDERING_FINAL_KEY
public static final String AGGREGATING_KEY
public static final String AGGREGATING
public static final String RESOURCES_STACK
public static final String SKIP_AGGREGATION
public String prepare(RenderContext renderContext, Resource resource, RenderChain chain) throws Exception
prepare in interface RenderFilterprepare in class AbstractFilterrenderContext - The render contextresource - The resource to renderchain - The render chainExceptionpublic String execute(String previousOut, RenderContext renderContext, Resource resource, RenderChain chain) throws Exception
execute in interface RenderFilterexecute in class AbstractFilterpreviousOut - Result from the previous filterrenderContext - The render contextresource - The resource to renderchain - The render chainExceptionpublic void finalize(RenderContext renderContext, Resource resource, RenderChain renderChain)
finalize in interface RenderFilterfinalize in class AbstractFilterprotected String aggregateContent(String content, RenderContext renderContext) throws RenderException
content - The fragmentrenderContext - The render contextRenderExceptionprotected String generateContent(RenderContext renderContext, String key) throws RenderException
renderContext - The render contextkey - The key of the fragment to generateRenderExceptionpublic void setKeyGenerator(CacheKeyGenerator keyGenerator)
public static boolean skipAggregation(javax.servlet.ServletRequest request)
request - is the current requestCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.