public class RenderConditionHelper
extends java.lang.Object
RenderCondition
of a resource.Constructor and Description |
---|
RenderConditionHelper(SlingHttpServletRequest request,
SlingHttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
RenderCondition |
getRenderCondition(Resource resource)
Returns the render condition of the given resource.
|
RenderCondition |
getRenderCondition(Resource resource,
boolean cache)
Returns the render condition of the given resource.
|
public RenderConditionHelper(SlingHttpServletRequest request, SlingHttpServletResponse response)
public RenderCondition getRenderCondition(Resource resource) throws ServletException, java.io.IOException
getRenderCondition(Resource, boolean)
with cache = false.resource
- The resource whose render condition needs to be fetchedServletException
- When there's a servlet error during includejava.io.IOException
- When there's an I/O error during includepublic RenderCondition getRenderCondition(Resource resource, boolean cache) throws ServletException, java.io.IOException
granite:rendercondition
subresource. If there is no such subresource,
SimpleRenderCondition.TRUE
is returned.resource
- The resource whose render condition needs to be fetchedcache
- true
to cache the result; Use it when checking render
condition of other resource (typically the item resource) so that
the render condition is only resolved once.ServletException
- When there's a servlet error during includejava.io.IOException
- When there's an I/O error during include"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"