Class ContentFileResource
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- org.apache.sling.api.resource.AbstractResource
-
- org.apache.sling.fsprovider.internal.mapper.ContentFileResource
-
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable,org.apache.sling.api.resource.Resource
public final class ContentFileResource extends org.apache.sling.api.resource.AbstractResourceRepresents a JSON File with resource content.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <AdapterType>
AdapterTypeadaptTo(@Nullable Class<AdapterType> type)@NotNull StringgetPath()@NotNull org.apache.sling.api.resource.ResourceMetadatagetResourceMetadata()@NotNull org.apache.sling.api.resource.ResourceResolvergetResourceResolver()StringgetResourceSuperType()@NotNull StringgetResourceType()StringtoString()-
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
-
-
-
-
Method Detail
-
getPath
@NotNull public @NotNull String getPath()
-
getResourceMetadata
@NotNull public @NotNull org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
-
getResourceResolver
@NotNull public @NotNull org.apache.sling.api.resource.ResourceResolver getResourceResolver()
-
getResourceSuperType
public String getResourceSuperType()
-
getResourceType
@NotNull public @NotNull String getResourceType()
-
adaptTo
public <AdapterType> AdapterType adaptTo(@Nullable @Nullable Class<AdapterType> type)- Specified by:
adaptToin interfaceorg.apache.sling.api.adapter.Adaptable- Overrides:
adaptToin classorg.apache.sling.api.adapter.SlingAdaptable
-
-