public interface ResourceWriter
Resource
.Modifier and Type | Method and Description |
---|---|
void |
deleteResource(URI uri,
Map<String,Object> arguments)
Deletes the
Resource . |
URI |
storeResource(Resource resource,
Map<String,Object> arguments)
Stores the
Resource with optional arguments |
URI |
storeResource(Resource resource,
String id,
Map<String,Object> arguments)
Stores the
Resource using the supplied id and optional arguments |
URI storeResource(Resource resource, Map<String,Object> arguments) throws ResourceNotSupportedException, IOException
Resource
with optional argumentsresource
- the Resource
to storearguments
- optional arguments associated with the operationURI
associated with the Resource
{@link
- ResourceNotSupportedException} thrown if this writer does not support the type
of Resource
{@link
- IOException} thrown typically when there is an issue storing the Resource
ResourceNotSupportedException
IOException
URI storeResource(Resource resource, String id, Map<String,Object> arguments) throws ResourceNotSupportedException, IOException
Resource
using the supplied id and optional argumentsresource
- the Resource
to storeid
- the id with which to identify the Resource
arguments
- optional arguments associated with the operationURI
associated with the Resource
{@link
- ResourceNotSupportedException} thrown if this writer does not support the Resource
{@link
- IOException} thrown typically when there is an issue storing the Resource
ResourceNotSupportedException
IOException
void deleteResource(URI uri, Map<String,Object> arguments) throws ResourceNotFoundException, IOException
Resource
.uri
- the URI
to obtain the Resource
arguments
- optional arguments associated with the operation{@link
- ResourceNotSupportedException} thrown if this writer does not support the Resource
{@link
- IOException} thrown typically when there is an issue accessing the Resource
fileResourceNotFoundException
IOException
This work is licensed under a Creative Commons Attribution 4.0 International License.