org.apache.sling.scripting.jsp.taglib
Class DefineObjectsTag

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

public class DefineObjectsTag
extends javax.servlet.jsp.tagext.TagSupport

See Also:
Serialized Form

Field Summary
static String DEFAULT_BINDINGS_NAME
          Default name for the scripting variable referencing the javax.script.Bindings object (value is "bindings").
static String DEFAULT_LOG_NAME
          Default name for the scripting variable referencing the log org.slf4j.Logger (value is "log").
static String DEFAULT_NODE_NAME
          Default name for the scripting variable referencing the JCR node underlying the current Resource object if it is based on a JCR node (value is "currentNode").
static String DEFAULT_REQUEST_NAME
          Default name for the scripting variable referencing the SlingHttpServletRequest object (value is "slingRequest").
static String DEFAULT_RESOURCE_NAME
          Default name for the scripting variable referencing the current Resource object (value is "resource").
static String DEFAULT_RESOURCE_RESOLVER_NAME
          Default name for the scripting variable referencing the current ResourceResolver (value is "resourceResolver").
static String DEFAULT_RESPONSE_NAME
          Default name for the scripting variable referencing the SlingHttpServletResponse object (value is "slingResponse").
static String DEFAULT_SLING_NAME
          Default name for the scripting variable referencing the current SlingScriptHelper (value is "sling").
 
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
DefineObjectsTag()
          Default constructor.
 
Method Summary
 int doEndTag()
          Creates Scripting variables for: SlingHttpServletRequest SlingHttpServletResponse current Resource current Node (if resource is adaptable to a node) current Logger current SlingScriptHelper
 void release()
           
 void setBindingsName(String name)
           
 void setLogName(String name)
           
 void setNodeName(String name)
           
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
           
 void setRequestName(String requestName)
           
 void setResourceName(String name)
           
 void setResourceResolverName(String name)
           
 void setResponseName(String responseName)
           
 void setSlingName(String name)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REQUEST_NAME

public static final String DEFAULT_REQUEST_NAME
Default name for the scripting variable referencing the SlingHttpServletRequest object (value is "slingRequest").

See Also:
Constant Field Values

DEFAULT_RESPONSE_NAME

public static final String DEFAULT_RESPONSE_NAME
Default name for the scripting variable referencing the SlingHttpServletResponse object (value is "slingResponse").

See Also:
Constant Field Values

DEFAULT_RESOURCE_NAME

public static final String DEFAULT_RESOURCE_NAME
Default name for the scripting variable referencing the current Resource object (value is "resource").

See Also:
Constant Field Values

DEFAULT_NODE_NAME

public static final String DEFAULT_NODE_NAME
Default name for the scripting variable referencing the JCR node underlying the current Resource object if it is based on a JCR node (value is "currentNode").

See Also:
Constant Field Values

DEFAULT_BINDINGS_NAME

public static final String DEFAULT_BINDINGS_NAME
Default name for the scripting variable referencing the javax.script.Bindings object (value is "bindings").

See Also:
Constant Field Values

DEFAULT_LOG_NAME

public static final String DEFAULT_LOG_NAME
Default name for the scripting variable referencing the log org.slf4j.Logger (value is "log").

See Also:
Constant Field Values

DEFAULT_SLING_NAME

public static final String DEFAULT_SLING_NAME
Default name for the scripting variable referencing the current SlingScriptHelper (value is "sling").

See Also:
Constant Field Values

DEFAULT_RESOURCE_RESOLVER_NAME

public static final String DEFAULT_RESOURCE_RESOLVER_NAME
Default name for the scripting variable referencing the current ResourceResolver (value is "resourceResolver").

See Also:
Constant Field Values
Constructor Detail

DefineObjectsTag

public DefineObjectsTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
Creates Scripting variables for:

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
always Tag.EVAL_PAGE.

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Specified by:
setPageContext in interface javax.servlet.jsp.tagext.Tag
Overrides:
setPageContext in class javax.servlet.jsp.tagext.TagSupport

setRequestName

public void setRequestName(String requestName)

setResponseName

public void setResponseName(String responseName)

setResourceName

public void setResourceName(String name)

setNodeName

public void setNodeName(String name)

setLogName

public void setLogName(String name)

setSlingName

public void setSlingName(String name)

setResourceResolverName

public void setResourceResolverName(String name)

setBindingsName

public void setBindingsName(String name)

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.