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(@Nonnull
SlingHttpServletRequest request,
@Nonnull
SlingHttpServletResponse response)
@Nonnull public RenderCondition getRenderCondition(@Nonnull Resource resource) throws javax.servlet.ServletException, java.io.IOException
getRenderCondition(Resource, boolean)
with cache = false.resource - The resource whose render condition needs to be fetchedjavax.servlet.ServletException - When there's a servlet error during includejava.io.IOException - When there's an I/O error during include@Nonnull public RenderCondition getRenderCondition(@Nonnull Resource resource, boolean cache) throws javax.servlet.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.javax.servlet.ServletException - When there's a servlet error during includejava.io.IOException - When there's an I/O error during includeCopyright © 2010 - 2023 Adobe. All Rights Reserved