public class ExecutionContextImpl extends Object implements ExecutionContext
| Constructor and Description |
|---|
ExecutionContextImpl(Features features,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
Features |
getFeatures()
Return the
Features manager. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns a
HttpServletRequest object to retrieve information which
may influence the decision whether a Feature is enabled or not. |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver()
Returns a
ResourceResolver object to retrieve information which
may influence the decision whether a Feature is enabled or not. |
public ExecutionContextImpl(Features features, javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletRequest getRequest()
ExecutionContextHttpServletRequest object to retrieve information which
may influence the decision whether a Feature is enabled or not.
If a HttpServletRequest object is not available in the context,
this method may return null.getRequest in interface ExecutionContextnullpublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
ExecutionContextResourceResolver object to retrieve information which
may influence the decision whether a Feature is enabled or not.
If a ResourceResolver object is not available in the context,
this method may return null.getResourceResolver in interface ExecutionContextnullpublic Features getFeatures()
ExecutionContextFeatures manager. This allows a feature to find out
about other features.getFeatures in interface ExecutionContextCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.