FileSystemResource

public class FileSystemResource extends AbstractCaosDBServerResource

Download files via GET method from the file system directly without making the detour through the database. Other methods are not supported

Author:

Timm Fitschen

Fields

ORPHANED_FILE_WARNING

public static Message ORPHANED_FILE_WARNING

Methods

getBenchmark

TransactionBenchmark getBenchmark()

getEntityID

protected String getEntityID(String path)

getFile

protected File getFile(String path)

getFileElement

Element getFileElement(String directory, File file)

Return an element for the given file on a file system.

If there is no File entity for this file, an element without id is returned, instead a corresponding message is added to the element.

getThumbnailAttribute

protected Attribute getThumbnailAttribute(File file, File child, String referenceString)

httpGetInChildClass

protected final Representation httpGetInChildClass()

Download a File from the CaosDBFileSystem. Only one File per Request.

Author:

Timm Fitschen

Throws:
Returns:

InputRepresentation

httpPostInChildClass

protected Representation httpPostInChildClass(Representation entity)