Class FindResourcesTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.FindResourcesTag
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class FindResourcesTag
extends javax.servlet.jsp.tagext.TagSupport
Tag for searching for resources using the given query formulated in the given
language.
- 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 TypeMethodDescriptionint
doEndTag()
Gets the language.getQuery()
Gets the query.protected org.apache.sling.api.resource.ResourceResolver
Method for retrieving the ResourceResolver from the page context.getVar()
Gets the variable name to which to save the list of children.void
setLanguage
(String language) Sets the language.void
Sets the query.void
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
-
Constructor Details
-
FindResourcesTag
public FindResourcesTag()
-
-
Method Details
-
doEndTag
public int doEndTag()- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
-
getResourceResolver
protected org.apache.sling.api.resource.ResourceResolver getResourceResolver()Method for retrieving the ResourceResolver from the page context.- Returns:
- the resource resolver
-
getLanguage
Gets the language.- Returns:
- the language
-
getQuery
Gets the query.- Returns:
- the query
-
getVar
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setLanguage
Sets the language.- Parameters:
language
- the new language
-
setQuery
Sets the query.- Parameters:
query
- the new query
-
setVar
Sets the variable name to which to save the list of children.- Parameters:
var
- the variable name
-