Interface File

All Superinterfaces:
PublishableResource

@ProviderType public interface File extends PublishableResource
An interface representing a sling:File resource. Adaptable from a sling:File Resource.
  • Method Details

    • getMetadata

      org.apache.sling.api.resource.ValueMap getMetadata()
      Retrieves the metadata extracted from the file.
      Returns:
      the metadata extracted from the file
    • getContentType

      String getContentType()
      Gets the content type of this file
      Returns:
      the content type of the file