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
granite:rendercondition subresource.
This method is an overload of getRenderCondition(Resource, boolean) with cache = false.resource - The resource whose render condition needs to be fetchednullServletException - 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.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.nullServletException - When there's a servlet error during includejava.io.IOException - When there's an I/O error during include"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"