Interface Resource

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SolidResource
All Known Implementing Classes:
NonRDFSource, RDFSource, SolidContainer, SolidNonRDFSource, SolidRDFSource, SolidResourceReference, WebIdProfile

public interface Resource extends AutoCloseable
A base class for all resources.

This class can be used as a basis for higher-level client applications.

  • Method Details

    • getIdentifier

      URI getIdentifier()
      The resource identifier.
      Returns:
      the identifier
    • getContentType

      String getContentType()
      The content type of the resource.
      Returns:
      the content type
    • getHeaders

      Headers getHeaders()
      The resource headers.
      Returns:
      the resource headers
    • getEntity

      InputStream getEntity() throws IOException
      The resource entity.
      Returns:
      the resource entity
      Throws:
      IOException - in the case of an error when generating the entity