Interface AbstractResource

All Known Subinterfaces:
CloseableResource, ReadableButNotWritableResource, ReadableResource, Resource, ResourceRepository, WritableButNotReadableResource, WritableResource
All Known Implementing Classes:
AppendableResource, BaseResource, ClasspathResource, DataResource, DelegatingMultipartResource, DelegatingReadableResource, DelegatingResource, DelegatingWritableResource, EmptyResource, ErrorResource, FileDescriptorResource, FileResource, IntegrityValidatingDelegatingResource, IPFSApiResource, IPFSGatewayResource, MarkdownResource, MemoryResource, MultibaseResource, NullResource, OkHttpResource, ReadableButNotWritableDelegatingResource, RegexMultipartResource, ReplacingResource, StringResource, StringResource2, TeapotResource, TestResource, UrlResource, WritableButNotReadableDelegatingResource, WriterResource

public interface AbstractResource
  • Method Summary

    Modifier and Type
    Method
    Description
    MediaType describing the format of this resource.
    uri()
    URI where the (bytes) content of resource can be read from or written to.
  • Method Details

    • uri

      URI uri()
      URI where the (bytes) content of resource can be read from or written to.
    • mediaType

      MediaType describing the format of this resource. This is always present, but could be wrong; a ResourceMediaTypeDetector may find a better one. TODO This doc contradicts ResourceMediaTypeDetector's... so which one is it?! ;-)