Package com.inrupt.client.solid
Class SolidResourceReference
java.lang.Object
com.inrupt.client.solid.SolidResourceReference
- All Implemented Interfaces:
Resource
,SolidResource
,AutoCloseable
A reference to a Solid Resource without any corresponding data.
-
Constructor Summary
ConstructorDescriptionSolidResourceReference
(URI identifier, Metadata metadata) Create a reference to a Solid resource. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The content type of the resource.The resource entity.The resource headers.The resource identifier.Get the associated metadata about this resource.
-
Constructor Details
-
SolidResourceReference
Create a reference to a Solid resource.- Parameters:
identifier
- the resource identifiermetadata
- the resource metadata
-
-
Method Details
-
getIdentifier
Description copied from interface:Resource
The resource identifier.- Specified by:
getIdentifier
in interfaceResource
- Returns:
- the identifier
-
getMetadata
Description copied from interface:SolidResource
Get the associated metadata about this resource.Typically, this metadata will be populated with information from response headers. For manually created
SolidResource
objects, this will generally be empty.- Specified by:
getMetadata
in interfaceSolidResource
- Returns:
- the metadata
-
getEntity
Description copied from interface:Resource
The resource entity.- Specified by:
getEntity
in interfaceResource
- Returns:
- the resource entity
- Throws:
IOException
- in the case of an error when generating the entity
-
getHeaders
Description copied from interface:Resource
The resource headers.- Specified by:
getHeaders
in interfaceResource
- Returns:
- the resource headers
-
getContentType
Description copied from interface:Resource
The content type of the resource.- Specified by:
getContentType
in interfaceResource
- Returns:
- the content type
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-