public class DefaultRenderTimeMonitor extends ConditionalExecution implements RenderTimeMonitor
RenderTimeLimitExceededException to stop the current request processing chain. AbstractFilter here to utilize the code for conditional execution.| Constructor and Description |
|---|
DefaultRenderTimeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxRequestRenderTime() |
void |
monitor(Resource resource,
RenderContext renderContext)
Checks the current request rendering time and, if it exceeds the maximum configured one, throws the
RenderTimeLimitExceededException to stop the current request processing chain. |
void |
setMaxRequestRenderTime(long maxRequestRenderTime) |
void |
track(javax.servlet.http.HttpServletRequest request)
Start tracking the current request render time, if it was not done before.
|
addCondition, addCondition, areConditionsMatched, getConditionsSummary, setApplyOnConfigurations, setApplyOnEditMode, setApplyOnMainResource, setApplyOnModes, setApplyOnModules, setApplyOnNodeTypes, setApplyOnSiteTemplateSets, setApplyOnTemplates, setApplyOnTemplateTypes, setConditions, setSkipOnAjaxRequest, setSkipOnConfiguration, setSkipOnConfigurations, setSkipOnEditMode, setSkipOnMainResource, setSkipOnModes, setSkipOnModules, setSkipOnNodeTypes, setSkipOnTemplates, setSkipOnTemplateTypes, setSkipOnWebflowRequestpublic long getMaxRequestRenderTime()
public void monitor(Resource resource, RenderContext renderContext) throws RenderTimeLimitExceededException
RenderTimeMonitorRenderTimeLimitExceededException to stop the current request processing chain.monitor in interface RenderTimeMonitorresource - the currently rendered resourcerenderContext - current rendering contextRenderTimeLimitExceededException - in case the request rendering time exceeded the maximum allowed onepublic void setMaxRequestRenderTime(long maxRequestRenderTime)
public void track(javax.servlet.http.HttpServletRequest request)
RenderTimeMonitortrack in interface RenderTimeMonitorrequest - the current HTTP requestCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.