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.AbstractResource
Represents 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 String
getPath()
@NotNull org.apache.sling.api.resource.ResourceMetadata
getResourceMetadata()
@NotNull org.apache.sling.api.resource.ResourceResolver
getResourceResolver()
String
getResourceSuperType()
@NotNull String
getResourceType()
String
toString()
-
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:
adaptTo
in interfaceorg.apache.sling.api.adapter.Adaptable
- Overrides:
adaptTo
in classorg.apache.sling.api.adapter.SlingAdaptable
-
-