Class Metadata

java.lang.Object
com.inrupt.client.solid.Metadata

public class Metadata extends Object
Solid Resource Metadata.
  • Constructor Details

    • Metadata

      protected Metadata(URI storage, URI acl, String contentType)
      Create a new Metadata object.
      Parameters:
      storage - the Solid storage in which this resource is managed
      acl - the ACL location for this resource
      contentType - the content type of the respective Solid resource
  • Method Details

    • getStorage

      public Optional<URI> getStorage()
      The Solid Storage location.
      Returns:
      the storage location, if known.
    • getTypes

      public Set<URI> getTypes()
      The Solid Resource types.

      This data typically comes from HTTP Link headers and may be different than rdf:type data explicitly set on a resource.

      Returns:
      the type values for a resource
    • getWacAllow

      public Map<String,Set<String>> getWacAllow()
      The WAC-Allow permission information.
      Returns:
      authorization hints as expressed in a WAC-Allow header
    • getAcl

      public Optional<URI> getAcl()
      The access control resource location.
      Returns:
      the access control resource location, if present
    • getAllowedMethods

      public Set<String> getAllowedMethods()
      The supported HTTP methods for the associated resource.

      This collection of methods may be different from the methods that an agent may be authorized to perform.

      Returns:
      the supported HTTP methods
    • getAllowedPatchSyntaxes

      public Set<String> getAllowedPatchSyntaxes()
      The supported HTTP PATCH MIME types for the associated resource.

      This collection represents the PATCH MIME types that a server supports, which may be different from what an agent is authorized to perform.

      Returns:
      the supported PATCH MIME types
    • getAllowedPostSyntaxes

      public Set<String> getAllowedPostSyntaxes()
      The supported HTTP POST MIME types for the associated resource.

      This collection represents the POST MIME types that a server supports, which may be different from what an agent is authorized to perform.

      Returns:
      the supported POST MIME types
    • getAllowedPutSyntaxes

      public Set<String> getAllowedPutSyntaxes()
      The supported HTTP PUT MIME types for the associated resource.

      This collection represents the PUT MIME types that a server supports, which may be different from what an agent is authorized to perform.

      Returns:
      the supported PUT MIME types
    • getContentType

      public String getContentType()
      The content types associated with the Solid Resource.
      Returns:
      the content types
    • newBuilder

      public static Metadata.Builder newBuilder()
      Create a new Metadata builder.
      Returns:
      a Metadata builder object
    • of

      public static Metadata of(URI identifier, Headers headers)