Class GetResourceTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.GetResourceTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class GetResourceTag extends javax.servlet.jsp.tagext.TagSupportTag for retrieving resources based on either an absolute path or a relative path and a base resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetResourceTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()ResourcegetBase()Gets the base resource.java.lang.StringgetPath()Get the path of the resource to retrieve.java.lang.StringgetVar()Gets the variable name to which to save the list of children.voidsetBase(Resource base)Sets the base resource.voidsetPath(java.lang.String path)Set the path of the resource to retrieve.voidsetVar(java.lang.String var)Sets the variable name to which to save the list of children.
-
-
-
Method Detail
-
doEndTag
public int doEndTag()
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport
-
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
-
-