Class AbstractCATag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.AbstractCATag
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
GetCAConfigResourcesTag
,GetCAConfigResourceTag
public abstract class AbstractCATag
extends javax.servlet.jsp.tagext.TagSupport
Abstract class for Tags for interactiving with Context-Aware Configuration
resources to extend.
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sling.caconfig.resource.ConfigurationResourceResolver
Method for retrieving the ConfigurationResourceResolver from the page context.getName()
org.apache.sling.api.resource.Resource
getVar()
Gets the variable name to which to save the list of children.void
void
void
setResource
(org.apache.sling.api.resource.Resource resource) void
Sets the variable name to which to save the list of children.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
AbstractCATag
public AbstractCATag()
-
-
Method Details
-
getBucket
- Returns:
- the bucket
-
getName
- Returns:
- the name
-
getResource
public org.apache.sling.api.resource.Resource getResource()- Returns:
- the resource
-
getConfigurationResourceResolver
protected org.apache.sling.caconfig.resource.ConfigurationResourceResolver getConfigurationResourceResolver()Method for retrieving the ConfigurationResourceResolver from the page context.- Returns:
- the resource resolver
-
getVar
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setBucket
- Parameters:
bucket
- the bucket to set
-
setName
- Parameters:
name
- the name to set
-
setResource
public void setResource(org.apache.sling.api.resource.Resource resource) - Parameters:
resource
- the resource to set
-
setVar
Sets the variable name to which to save the list of children.- Parameters:
var
- the variable name
-