Package ddf.catalog.resource
Interface ResourceWriter
public interface ResourceWriter
The ResourceWriter is used to store a
Resource.- Author:
- Michael Menousek
-
Method Summary
-
Method Details
-
storeResource
URI storeResource(Resource resource, Map<String, Object> arguments) throws ResourceNotSupportedException, IOExceptionStores theResourcewith optional arguments- Parameters:
resource- theResourceto storearguments- optional arguments associated with the operation- Returns:
- the
URIassociated with theResource - Throws:
ResourceNotSupportedExceptionIOException
-
storeResource
URI storeResource(Resource resource, String id, Map<String, Object> arguments) throws ResourceNotSupportedException, IOExceptionStores theResourceusing the supplied id and optional arguments- Parameters:
resource- theResourceto storeid- the id with which to identify theResourcearguments- optional arguments associated with the operation- Returns:
- the
URIassociated with theResource - Throws:
ResourceNotSupportedExceptionIOException
-
deleteResource
void deleteResource(URI uri, Map<String, Object> arguments) throws ResourceNotFoundException, IOExceptionDeletes theResource.- Parameters:
uri- theURIto obtain theResourcearguments- optional arguments associated with the operation- Throws:
ResourceNotFoundExceptionIOException
-