Package io.wcm.handler.link
Class SyntheticLinkResource
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- org.apache.sling.api.resource.AbstractResource
-
- org.apache.sling.api.resource.SyntheticResource
-
- io.wcm.handler.link.SyntheticLinkResource
-
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable,org.apache.sling.api.resource.Resource
@ProviderType public final class SyntheticLinkResource extends org.apache.sling.api.resource.SyntheticResourceSynthetic resource for building links viaLinkHandler. Use properties with names provided byLinkNameConstants.
-
-
Constructor Summary
Constructors Constructor Description SyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver)Deprecated.SyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull String path)Instantiate resource with static path/resource typeSyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull String path, @NotNull Map<String,Object> properties)Instantiate resource with static path/resource typeSyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull Map<String,Object> properties)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Type> TypeadaptTo(Class<Type> type)-
Methods inherited from class org.apache.sling.api.resource.SyntheticResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toString
-
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
-
-
-
-
Constructor Detail
-
SyntheticLinkResource
public SyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull String path)Instantiate resource with static path/resource type- Parameters:
resourceResolver- Resource resolverpath- Resource path. Can be a non-existing path, but the path should be located somewhere within the applications content paths to make sure the handler configuration looked up via context-aware services is the expected one.
-
SyntheticLinkResource
public SyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull String path, @NotNull @NotNull Map<String,Object> properties)Instantiate resource with static path/resource type- Parameters:
resourceResolver- Resource resolverpath- Resource path. Can be a non-existing path, but the path should be located somewhere within the applications content paths to make sure the handler configuration looked up via context-aware services is the expected one.properties- Properties for resource
-
SyntheticLinkResource
@Deprecated public SyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver)
Deprecated.Instantiate resource with static path/resource type- Parameters:
resourceResolver- Resource resolver
-
SyntheticLinkResource
@Deprecated public SyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull Map<String,Object> properties)
Deprecated.Instantiate resource with static path/resource type- Parameters:
resourceResolver- Resource resolverproperties- Properties for resource
-
-
Method Detail
-
adaptTo
public <Type> Type adaptTo(Class<Type> type)
- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.apache.sling.api.adapter.SlingAdaptable
-
-