Interface ResourceContents

All Superinterfaces:
MetaCarrier
All Known Subinterfaces:
BlobResourceContents, TextResourceContents

public sealed interface ResourceContents extends MetaCarrier permits TextResourceContents, BlobResourceContents
The content of a resource, which can be text or binary data.
  • Method Details

    • uri

      String uri()
      Returns the URI of this resource.
      Returns:
      the URI of the resource
    • mimeType

      Optional<String> mimeType()
      Returns the MIME type of this resource.
      Returns:
      the MIME type of the resource, if provided, otherwise an empty Optional