Interface ResolveContext<T>
- All Known Implementing Classes:
BasicResolveContext
@ProviderType
public interface ResolveContext<T>
The resolve context is passed to most of the methods of the
ResourceProvider
to provide additional context information for the provider.
If the provider requires authentication, the object returned by ResourceProvider.authenticate(Map)
is returned in getProviderState()
.- Since:
- 1.0.0 (Sling API Bundle 2.11.0)
-
Method Summary
Modifier and TypeMethodDescription@Nullable ResolveContext<?>
Return a resolve context for the parent resource provider.@Nullable ResourceProvider<?>
Return the parent resource provider.This is the object returned byResourceProvider.authenticate(Map)
@NotNull ResourceResolver
Get the current resource resolver.
-
Method Details
-
getResourceResolver
Get the current resource resolver.- Returns:
- The resource resolver.
-
getProviderState
This is the object returned byResourceProvider.authenticate(Map)
- Returns:
- The data object or
null
-
getParentResolveContext
Return a resolve context for the parent resource provider.- Returns:
- A resolve context or
null
if there is no parent. - See Also:
-
getParentResourceProvider
Return the parent resource provider. If the parent should be used for resolving, a context created withgetParentResolveContext()
should be passed to that instance.- Returns:
- The parent provider or
null
if there is no parent.
-