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()
ExecutionContext
HttpServletRequest
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 ExecutionContext
null
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
ExecutionContext
ResourceResolver
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 ExecutionContext
null
public Features getFeatures()
ExecutionContext
Features
manager. This allows a feature to find out
about other features.getFeatures
in interface ExecutionContext
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.