Class GetResourceTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.GetResourceTag
-
- All Implemented Interfaces:
java.io.Serializable
,IterationTag
,JspTag
,Tag
public class GetResourceTag extends TagSupport
Tag for retrieving resources based on either an absolute path or a relative path and a base resource.- See Also:
- Serialized Form
-
-
Field Summary
-
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 Constructor Description GetResourceTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
Default processing of the end tag returning EVAL_PAGE.Resource
getBase()
Gets the base resource.java.lang.String
getPath()
Get the path of the resource to retrieve.java.lang.String
getVar()
Gets the variable name to which to save the list of children.void
setBase(Resource base)
Sets the base resource.void
setPath(java.lang.String path)
Set the path of the resource to retrieve.void
setVar(java.lang.String var)
Sets the variable name to which to save the list of children.-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
doEndTag
public int doEndTag()
Description copied from class:TagSupport
Default processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- EVAL_PAGE
- See Also:
Tag.doEndTag()
-
getBase
public Resource getBase()
Gets the base resource.- Returns:
- the base resource
-
getPath
public java.lang.String getPath()
Get the path of the resource to retrieve.- Returns:
- the path
-
getVar
public java.lang.String getVar()
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setBase
public void setBase(Resource base)
Sets the base resource.- Parameters:
base
- the new base resource
-
setPath
public void setPath(java.lang.String path)
Set the path of the resource to retrieve.- Parameters:
path
- the path
-
setVar
public void setVar(java.lang.String var)
Sets the variable name to which to save the list of children.- Parameters:
var
- the variable name
-
-