All Implemented Interfaces:
File, PublishableResource

@Model(adaptables=org.apache.sling.api.resource.Resource.class, adapters=org.apache.sling.cms.File.class) public class FileImpl extends PublishableResourceImpl implements File
A model representing a file
  • Constructor Details

    • FileImpl

      @Inject public FileImpl(org.apache.sling.api.resource.Resource resource)
  • Method Details

    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface File
    • getMetadata

      public org.apache.sling.api.resource.ValueMap getMetadata()
      Specified by:
      getMetadata in interface File