Package org.trellisldp.api
Class BinaryMetadata
- java.lang.Object
- 
- org.trellisldp.api.BinaryMetadata
 
- 
 public final class BinaryMetadata extends Object The LDP specification divides resources into two categories: RDF resources and non-RDF resources. Non-RDF resources may also have a corresponding RDF description. These interfaces assume it is the case that Non-RDF resources have an RDF description.For those resources that are non-RDF resources (LDP-NR), the base Resourceinterface will make aBinaryMetadataobject available. The binary content is not accessed directly through theBinaryMetadataclass, but rather an identifier is returned, which may be resolved by an external system.The BinaryMetadataclass also provides access methods for the MIME Type of the resource.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBinaryMetadata.BuilderA mutable buillder for aBinaryMetadata.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryMetadata.Builderbuilder(IRI identifier)Get a mutable builder for aBinaryMetadata.Map<String,List<String>>getHints()Retrieve any hints for persistence.IRIgetIdentifier()Retrieve an IRI identifying the location of the binary.Optional<String>getMimeType()Retrieve the mime-type of the resource, if one was specified.
 
- 
- 
- 
Method Detail- 
getIdentifierpublic IRI getIdentifier() Retrieve an IRI identifying the location of the binary.- Returns:
- the resource content
 
 - 
getMimeTypepublic Optional<String> getMimeType() Retrieve the mime-type of the resource, if one was specified.- Returns:
- the mime-type
 
 - 
getHintspublic Map<String,List<String>> getHints() Retrieve any hints for persistence.- Returns:
- the hints
 
 - 
builderpublic static BinaryMetadata.Builder builder(IRI identifier) Get a mutable builder for aBinaryMetadata.- Parameters:
- identifier- the identifier
- Returns:
- a builder for a BinaryMetadata
 
 
- 
 
-