Interface ResourceView.HasMimeType

All Known Subinterfaces:
ClasspathResource, FileStorageResource, RelativePathResource, StreamResource, UrlResource
All Known Implementing Classes:
ClasspathResourceImpl, FileStorageResourceImpl, RelativePathResourceImpl, StreamResourceImpl, UrlResourceImpl
Enclosing interface:
ResourceView

public static interface ResourceView.HasMimeType
Marker interface to indicate that the implementing class supports MIME type setting.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setMimeType(String mimeType)
    Sets the mime type of the resource.
  • Method Details

    • setMimeType

      @StudioProperty(type=ENUMERATION, options={"image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/tiff"}) void setMimeType(String mimeType)
      Sets the mime type of the resource.
      Parameters:
      mimeType - the MIME type to be set
    • getMimeType

      String getMimeType()
      Returns:
      resource MIME type