public class GetResourceTag
extends javax.servlet.jsp.tagext.TagSupport
| Constructor and Description |
|---|
GetResourceTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
org.apache.sling.api.resource.Resource |
getBase()
Gets the base resource.
|
String |
getPath()
Get the path of the resource to retrieve.
|
protected org.apache.sling.api.resource.ResourceResolver |
getResourceResolver()
Method for retrieving the ResourceResolver from the page context.
|
String |
getVar()
Gets the variable name to which to save the list of children.
|
void |
setBase(org.apache.sling.api.resource.Resource base)
Sets the base resource.
|
void |
setPath(String path)
Set the path of the resource to retrieve.
|
void |
setVar(String var)
Sets the variable name to which to save the list of children.
|
public int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportprotected org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public org.apache.sling.api.resource.Resource getBase()
public String getPath()
public String getVar()
public void setBase(org.apache.sling.api.resource.Resource base)
base - the new base resourcepublic void setPath(String path)
path - the pathpublic void setVar(String var)
var - the variable nameCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.