Class BindingsUtils
- java.lang.Object
-
- org.apache.sling.scripting.sightly.impl.utils.BindingsUtils
-
-
Constructor Summary
Constructors Constructor Description BindingsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.sling.api.scripting.SlingScriptHelpergetHelper(Bindings bindings)Retrieves theSlingScriptHelperfrom aBindingsmap.static org.apache.sling.api.SlingHttpServletRequestgetRequest(Bindings bindings)Retrieves theSlingHttpServletRequestfrom aBindingsmap.static org.apache.sling.api.resource.ResourcegetResource(Bindings bindings)Retrieves theResourcefrom aBindingsmap.static org.apache.sling.api.SlingHttpServletResponsegetResponse(Bindings bindings)Retrieves theSlingHttpServletResponsefrom aBindingsmap.static Bindingsmerge(Bindings former, Bindings latter)Combine two bindings objects.
-
-
-
Method Detail
-
getResource
public static org.apache.sling.api.resource.Resource getResource(Bindings bindings)
Retrieves theResourcefrom aBindingsmap.- Parameters:
bindings- the bindings map- Returns:
- the
Resourceif found,nullotherwise
-
getRequest
public static org.apache.sling.api.SlingHttpServletRequest getRequest(Bindings bindings)
Retrieves theSlingHttpServletRequestfrom aBindingsmap.- Parameters:
bindings- the bindings maps- Returns:
- the
SlingHttpServletRequestif found,nullotherwise
-
getResponse
public static org.apache.sling.api.SlingHttpServletResponse getResponse(Bindings bindings)
Retrieves theSlingHttpServletResponsefrom aBindingsmap.- Parameters:
bindings- the bindings maps- Returns:
- the
SlingHttpServletResponseif found,nullotherwise
-
getHelper
public static org.apache.sling.api.scripting.SlingScriptHelper getHelper(Bindings bindings)
Retrieves theSlingScriptHelperfrom aBindingsmap.- Parameters:
bindings- the bindings map- Returns:
- the
SlingScriptHelperif found,nullotherwise
-
-