Package com.inrupt.client.solid
Class Metadata
java.lang.Object
com.inrupt.client.solid.Metadata
Solid Resource Metadata.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A Builder class for Metadata instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAcl()
The access control resource location.The supported HTTP methods for the associated resource.The supported HTTP PATCH MIME types for the associated resource.The supported HTTP POST MIME types for the associated resource.The supported HTTP PUT MIME types for the associated resource.The content types associated with the Solid Resource.The Solid Storage location.getTypes()
The Solid Resource types.The WAC-Allow permission information.static Metadata.Builder
Create a newMetadata
builder.static Metadata
-
Constructor Details
-
Metadata
Create a new Metadata object.- Parameters:
storage
- the Solid storage in which this resource is managedacl
- the ACL location for this resourcecontentType
- the content type of the respective Solid resource
-
-
Method Details
-
getStorage
The Solid Storage location.- Returns:
- the storage location, if known.
-
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
The WAC-Allow permission information.- Returns:
- authorization hints as expressed in a WAC-Allow header
-
getAcl
The access control resource location.- Returns:
- the access control resource location, if present
-
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
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
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
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
The content types associated with the Solid Resource.- Returns:
- the content types
-
newBuilder
Create a newMetadata
builder.- Returns:
- a Metadata builder object
-
of
-