Search in sources :

Example 1 with ReadStorageResponseImpl

use of ddf.catalog.content.operation.impl.ReadStorageResponseImpl in project ddf by codice.

the class FileSystemStorageProvider method read.

@Override
public ReadStorageResponse read(ReadStorageRequest readRequest) throws StorageException {
    LOGGER.trace("ENTERING: read");
    if (readRequest.getResourceUri() == null) {
        return new ReadStorageResponseImpl(readRequest);
    }
    URI uri = readRequest.getResourceUri();
    ContentItem returnItem = readContent(uri);
    return new ReadStorageResponseImpl(readRequest, returnItem);
}
Also used : ReadStorageResponseImpl(ddf.catalog.content.operation.impl.ReadStorageResponseImpl) URI(java.net.URI) ContentItem(ddf.catalog.content.data.ContentItem)

Aggregations

ContentItem (ddf.catalog.content.data.ContentItem)1 ReadStorageResponseImpl (ddf.catalog.content.operation.impl.ReadStorageResponseImpl)1 URI (java.net.URI)1