Package com.inrupt.client.solid
Class Metadata
- java.lang.Object
-
- com.inrupt.client.solid.Metadata
-
public class Metadata extends Object
Solid Resource Metadata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Metadata.Builder
A Builder class for Metadata instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<URI>
getAcl()
The access control resource location.Set<String>
getAllowedMethods()
The supported HTTP methods for the associated resource.Set<String>
getAllowedPatchSyntaxes()
The supported HTTP PATCH MIME types for the associated resource.Set<String>
getAllowedPostSyntaxes()
The supported HTTP POST MIME types for the associated resource.Set<String>
getAllowedPutSyntaxes()
The supported HTTP PUT MIME types for the associated resource.String
getContentType()
The content types associated with the Solid Resource.Optional<URI>
getStorage()
The Solid Storage location.Set<URI>
getTypes()
The Solid Resource types.Map<String,Set<String>>
getWacAllow()
The WAC-Allow permission information.static Metadata.Builder
newBuilder()
Create a newMetadata
builder.
-
-
-
Method Detail
-
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 newMetadata
builder.- Returns:
- a Metadata builder object
-
-