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
ConstructorsConstructorDescriptionSolidResourceReference(URI identifier, Metadata metadata) Create a reference to a Solid resource. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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:ResourceThe resource identifier.- Specified by:
 getIdentifierin interfaceResource- Returns:
 - the identifier
 
 - 
getMetadata
Description copied from interface:SolidResourceGet the associated metadata about this resource.Typically, this metadata will be populated with information from response headers. For manually created
SolidResourceobjects, this will generally be empty.- Specified by:
 getMetadatain interfaceSolidResource- Returns:
 - the metadata
 
 - 
getEntity
Description copied from interface:ResourceThe resource entity.- Specified by:
 getEntityin interfaceResource- Returns:
 - the resource entity
 - Throws:
 IOException- in the case of an error when generating the entity
 - 
getHeaders
Description copied from interface:ResourceThe resource headers.- Specified by:
 getHeadersin interfaceResource- Returns:
 - the resource headers
 
 - 
getContentType
Description copied from interface:ResourceThe content type of the resource.- Specified by:
 getContentTypein interfaceResource- Returns:
 - the content type
 
 - 
close
public void close()- Specified by:
 closein interfaceAutoCloseable
 
 -