Class LinkComponentPropertyResolver

  • All Implemented Interfaces:
    AutoCloseable

    @ProviderType
    public final class LinkComponentPropertyResolver
    extends Object
    implements AutoCloseable
    Resolves Link Handler component properties for the component associated with the given resource from content policies and properties defined in the component resource. Please make sure to close() instances of this class after usage.
    • Constructor Detail

      • LinkComponentPropertyResolver

        public LinkComponentPropertyResolver​(@NotNull
                                             @NotNull org.apache.sling.api.resource.Resource resource,
                                             @NotNull
                                             @NotNull io.wcm.wcm.commons.component.ComponentPropertyResolverFactory componentPropertyResolverFactory)
        Parameters:
        resource - Resource containing link properties
        componentPropertyResolverFactory - Component property resolver factory
    • Method Detail

      • getLinkTargetUrlFallbackProperty

        @NotNull
        public @NotNull String @Nullable [] getLinkTargetUrlFallbackProperty()
        Returns:
        Link target URL fallback property name