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.
  • Field Summary

    Fields inherited from interface org.apache.sling.api.resource.Resource

    RESOURCE_TYPE_NON_EXISTING
  • Method Summary

    Modifier and Type
    Method
    Description
    <AdapterType>
    AdapterType
    adaptTo(@Nullable Class<AdapterType> type)
     
    @NotNull String
     
    @NotNull org.apache.sling.api.resource.ResourceMetadata
     
    @NotNull org.apache.sling.api.resource.ResourceResolver
     
     
    @NotNull String
     
     

    Methods inherited from class org.apache.sling.api.resource.AbstractResource

    getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren

    Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable

    setAdapterManager, unsetAdapterManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • 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 interface org.apache.sling.api.adapter.Adaptable
      Overrides:
      adaptTo in class org.apache.sling.api.adapter.SlingAdaptable
    • toString

      public String toString()
      Overrides:
      toString in class Object