Class FindResourcesTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.FindResourcesTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class FindResourcesTag extends TagSupport
Tag for searching for resources using the given query formulated in the given language.
See Also:
  • Constructor Details

    • FindResourcesTag

      public FindResourcesTag()
  • Method Details

    • doEndTag

      public int doEndTag()
      Description copied from class: TagSupport
      Default processing of the end tag returning EVAL_PAGE.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE
      See Also:
    • getLanguage

      public String getLanguage()
      Gets the language.
      Returns:
      the language
    • getQuery

      public String getQuery()
      Gets the query.
      Returns:
      the query
    • getVar

      public String getVar()
      Gets the variable name to which to save the list of children.
      Returns:
      the variable name
    • setLanguage

      public void setLanguage(String language)
      Sets the language.
      Parameters:
      language - the new language
    • setQuery

      public void setQuery(String query)
      Sets the query.
      Parameters:
      query - the new query
    • setVar

      public void setVar(String var)
      Sets the variable name to which to save the list of children.
      Parameters:
      var - the variable name