Package org.apache.sling.featureflags
Interface ExecutionContext
- 
@ProviderType public interface ExecutionContextTheExecutionContextinterface provides access to the context for evaluating whether a feature is enabled or not. Instances of this object are provided to theFeature.isEnabled(ExecutionContext)to help evaluating whether the feature is enabled or not.This object provides access to live data and must only be used to read information. Modifying content through a
ResourceResolverdirectly or indirectly provided by this object is considered inappropriate and faulty behavior.Instances of this interface are provided by the feature manager to the
Featureservices. This interface is not intended to be implemented by client and application code. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeaturesgetFeatures()Return theFeaturesmanager.javax.servlet.http.HttpServletRequestgetRequest()Returns aHttpServletRequestobject to retrieve information which may influence the decision whether aFeatureis enabled or not.ResourceResolvergetResourceResolver()Returns aResourceResolverobject to retrieve information which may influence the decision whether aFeatureis enabled or not. 
 - 
 
- 
- 
Method Detail
- 
getRequest
javax.servlet.http.HttpServletRequest getRequest()
Returns aHttpServletRequestobject to retrieve information which may influence the decision whether aFeatureis enabled or not. If aHttpServletRequestobject is not available in the context, this method may returnnull.- Returns:
 - the request or 
null 
 
- 
getResourceResolver
ResourceResolver getResourceResolver()
Returns aResourceResolverobject to retrieve information which may influence the decision whether aFeatureis enabled or not. If aResourceResolverobject is not available in the context, this method may returnnull.- Returns:
 - the resource resolver or 
null 
 
 - 
 
 -