Resolves the resource from the given absolute path. Since: 2.0.4 (Sling API Bundle 2.0.4) See Also: Mappings for Resource Resolution if this resource resolver has already beenĬlosed. Thrown if an error occurs trying to resolve the resource. Throws: SlingException - Or a subclass thereof may be NonExistingResource if no such resource can be resolved. Returns: The Resource addressed by the absPath or a If the path is relative it isĪssumed relative to the root, that is a slash is prepended to Parameter is null, it is assumed to address the absPath - The absolute path to be resolved to a resource. Null in which case the implementation should use Parameters: request - The http servlet request object providing more hints at The host header or request parameters into account to resolve the Method is, that this method may take request properties like the scheme, The difference between this method and the resolve(String) NonExistingResource if the path cannot be resolved to an existing Taking HttpServletRequest into account, such as the value of Resolves the resource from the given absPath optionally Sensitive properties like ResourceResolverFactory.PASSWORD which is ![]() ResourceResolverFactory.getAdministrativeResourceResolver(Map), orĬlone(Map) are available through the getAttributeNames()Īnd getAttribute(String) methods with the exception of security ResourceResolverFactory.getResourceResolver(Map), The authentication info properties provided to the ![]() If the ResourceResolverFactoryĭoes not exist anymore, the resource resolver instances becomes invalid. Same applies in general to all objects returned by this instance,Įspecially for all resources. ResourceResolverFactory that created this instance exists. To check whether a Resource Resolver can still be used, the isLive()Ī ResourceResolver is only valid for as long as the Which was used to create this resolver is no longer active. Method once the resource resolver is not used any more to ensure any systemĪ Resource Resolver may also be closed implicitly if the ResourceResolverFactory Resource Resolver using any of the factory methods and ends with calling theĬlose() method. Is more than one resource provider involved and one of them fails in persisting,Ĭhanges already committed to other providers are not reverted.Ī Resource Resolver has a life cycle which begins with the creation of the The commit() is not using a two phase commit, therefore if there General it is advisable to limit transient changes to a single resource provider. The resource tree accessible through the resource resolver is backed by one or
0 Comments
Leave a Reply. |