Interface ResourceContext
-
@ProviderType public interface ResourceContext
The resource context provides additional information for resource resolving.- Since:
- 1.0.0 (Sling API Bundle 2.11.0)
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceContext
EMPTY_CONTEXT
"Empty" instance, not providing any additional information.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.util.Map<java.lang.String,java.lang.String>
getResolveParameters()
Return optional parameters for resolving the resource.
-
-
-
Field Detail
-
EMPTY_CONTEXT
static final ResourceContext EMPTY_CONTEXT
"Empty" instance, not providing any additional information.
-
-
Method Detail
-
getResolveParameters
@Nullable @Nullable java.util.Map<java.lang.String,java.lang.String> getResolveParameters()
Return optional parameters for resolving the resource. For example if the resource is resolved through an http request, this map could contain the path parameters of the url.- Returns:
- A non empty map with parameters or
null
.
-
-