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