Package org.apache.sling.cms
Interface File
- All Superinterfaces:
PublishableResource
An interface representing a sling:File resource. Adaptable from a sling:File
Resource.
-
Method Summary
Modifier and TypeMethodDescriptionGets the content type of this fileorg.apache.sling.api.resource.ValueMapRetrieves the metadata extracted from the file.Methods inherited from interface org.apache.sling.cms.PublishableResource
getContentResource, getCreated, getCreatedBy, getLastModified, getLastModifiedBy, getLastPublication, getLastPublicationBy, getLastPublicationType, getName, getParent, getPath, getProperties, getPublishedPath, getPublishedUrl, getResource, getSite, isPublished
-
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
-