Package com.inrupt.client
Interface Resource
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SolidResource
- All Known Implementing Classes:
NonRDFSource
,RDFSource
,SolidContainer
,SolidNonRDFSource
,SolidRDFSource
,SolidResourceReference
,WebIdProfile
A base class for all resources.
This class can be used as a basis for higher-level client applications.
-
Method Summary
Modifier and TypeMethodDescriptionThe content type of the resource.The resource entity.The resource headers.The resource identifier.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getIdentifier
URI getIdentifier()The resource identifier.- Returns:
- the identifier
-
getContentType
String getContentType()The content type of the resource.- Returns:
- the content type
-
getHeaders
Headers getHeaders()The resource headers.- Returns:
- the resource headers
-
getEntity
The resource entity.- Returns:
- the resource entity
- Throws:
IOException
- in the case of an error when generating the entity
-