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.SlingScriptHelper
getHelper(Bindings bindings)
Retrieves theSlingScriptHelper
from aBindings
map.static org.apache.sling.api.SlingHttpServletRequest
getRequest(Bindings bindings)
Retrieves theSlingHttpServletRequest
from aBindings
map.static org.apache.sling.api.resource.Resource
getResource(Bindings bindings)
Retrieves theResource
from aBindings
map.static org.apache.sling.api.SlingHttpServletResponse
getResponse(Bindings bindings)
Retrieves theSlingHttpServletResponse
from aBindings
map.static Bindings
merge(Bindings former, Bindings latter)
Combine two bindings objects.
-
-
-
Method Detail
-
getResource
public static org.apache.sling.api.resource.Resource getResource(Bindings bindings)
Retrieves theResource
from aBindings
map.- Parameters:
bindings
- the bindings map- Returns:
- the
Resource
if found,null
otherwise
-
getRequest
public static org.apache.sling.api.SlingHttpServletRequest getRequest(Bindings bindings)
Retrieves theSlingHttpServletRequest
from aBindings
map.- Parameters:
bindings
- the bindings maps- Returns:
- the
SlingHttpServletRequest
if found,null
otherwise
-
getResponse
public static org.apache.sling.api.SlingHttpServletResponse getResponse(Bindings bindings)
Retrieves theSlingHttpServletResponse
from aBindings
map.- Parameters:
bindings
- the bindings maps- Returns:
- the
SlingHttpServletResponse
if found,null
otherwise
-
getHelper
public static org.apache.sling.api.scripting.SlingScriptHelper getHelper(Bindings bindings)
Retrieves theSlingScriptHelper
from aBindings
map.- Parameters:
bindings
- the bindings map- Returns:
- the
SlingScriptHelper
if found,null
otherwise
-
-