Interface ResourceContext

  • @ProviderType
    public interface ResourceContext
    The resource context provides additional information for resource resolving.
    1.0.0 (Sling API Bundle 2.11.0)
    • Field Detail


        static final ResourceContext EMPTY_CONTEXT
        "Empty" instance, not providing any additional information.
    • Method Detail

      • getResolveParameters

        @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.
        A non empty map with parameters or null.